@@ -26,7 +26,9 @@ pub struct Area {
2626impl Area {
2727 /// Create new area from floating point value in Square Meters
2828 pub fn from_square_meters ( square_meters : f64 ) -> Self {
29- Area { square_meters : square_meters }
29+ Area {
30+ square_meters : square_meters,
31+ }
3032 }
3133
3234 /// Create new area from floating point value in Square Metres
@@ -49,7 +51,8 @@ impl Area {
4951 /// Create new area from floating point value in Square Micrometers
5052 pub fn from_square_micrometers ( square_micrometers : f64 ) -> Self {
5153 Self :: from_square_meters (
52- square_micrometers / ( length:: METER_MICROMETER_FACTOR * length:: METER_MICROMETER_FACTOR ) ,
54+ square_micrometers
55+ / ( length:: METER_MICROMETER_FACTOR * length:: METER_MICROMETER_FACTOR ) ,
5356 )
5457 }
5558
@@ -61,7 +64,8 @@ impl Area {
6164 /// Create new area from floating point value in Square Millimeters
6265 pub fn from_square_millimeters ( square_millimeters : f64 ) -> Self {
6366 Self :: from_square_meters (
64- square_millimeters / ( length:: METER_MILLIMETER_FACTOR * length:: METER_MILLIMETER_FACTOR ) ,
67+ square_millimeters
68+ / ( length:: METER_MILLIMETER_FACTOR * length:: METER_MILLIMETER_FACTOR ) ,
6569 )
6670 }
6771
@@ -73,7 +77,8 @@ impl Area {
7377 /// Create new area from floating point value in Square Centimeters
7478 pub fn from_square_centimeters ( square_centimeters : f64 ) -> Self {
7579 Self :: from_square_meters (
76- square_centimeters / ( length:: METER_CENTIMETER_FACTOR * length:: METER_CENTIMETER_FACTOR ) ,
80+ square_centimeters
81+ / ( length:: METER_CENTIMETER_FACTOR * length:: METER_CENTIMETER_FACTOR ) ,
7782 )
7883 }
7984
@@ -97,7 +102,8 @@ impl Area {
97102 /// Create new area from floating point value in Square Hectometers
98103 pub fn from_square_hectometers ( square_hectometers : f64 ) -> Self {
99104 Self :: from_square_meters (
100- square_hectometers / ( length:: METER_HECTOMETER_FACTOR * length:: METER_HECTOMETER_FACTOR ) ,
105+ square_hectometers
106+ / ( length:: METER_HECTOMETER_FACTOR * length:: METER_HECTOMETER_FACTOR ) ,
101107 )
102108 }
103109
0 commit comments