Skip to content

Commit

Permalink
Format for readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
iliekturtles committed Apr 27, 2019
1 parent f331fdc commit 5cad47d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
6 changes: 4 additions & 2 deletions src/si/acceleration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ quantity! {
@yoctometer_per_second_squared: prefix!(yocto); "ym/s²", "yoctometer per second squared",
"yoctometers per second squared";

@foot_per_second_squared: 3.048_E-1; "ft/s²", "foot per second squared", "feet per second squared";
@foot_per_second_squared: 3.048_E-1; "ft/s²", "foot per second squared",
"feet per second squared";
@galileo: 1.0_E-2; "Gal", "galileo", "galileos";
@inch_per_second_squared: 2.54_E-2; "in/s²", "inch per second squared", "inches per second squared";
@inch_per_second_squared: 2.54_E-2; "in/s²", "inch per second squared",
"inches per second squared";
@millimeter_per_minute_squared: 2.777_777_777_777_777_8_E-7; "mm/min²",
"millimeter per minute squared", "millimeters per minute squared";
}
Expand Down
2 changes: 1 addition & 1 deletion src/si/angle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ quantity! {
units {
/// SI derived unit of angle. It is the angle subtended at the center of a circle by an
/// arc that is equal in length to the radius of the circle.
@radian: 1.0; "rad", "radian", "radians";
@radian: 1.0_E0; "rad", "radian", "radians";
@revolution: 6.283_185_307_179_586_E0; "r", "revolution", "revolutions";
@degree: 1.745_329_251_994_329_5_E-2; "°", "degree", "degrees";
@gon: 1.570_796_326_794_896_7_E-2; "gon", "gon", "gons";
Expand Down
7 changes: 5 additions & 2 deletions src/si/jerk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ quantity! {
@yoctometer_per_second_cubed: prefix!(yocto); "ym/s³", "yoctometer per second cubed",
"yoctometers per second cubed";

@foot_per_second_cubed: 3.048_E-1; "ft/s³", "foot per second cubed", "feet per second cubed";
@inch_per_second_cubed: 2.54_E-2; "in/s³", "inch per second cubed", "inches per second cubed";
@foot_per_second_cubed: 3.048_E-1; "ft/s³", "foot per second cubed",
"feet per second cubed";
@inch_per_second_cubed: 2.54_E-2; "in/s³", "inch per second cubed",
"inches per second cubed";
@kilometer_per_minute_cubed: 4.629_629_629_629_629_E-3; "km/min³",
"kilometer per minute cubed", "kilometers per minute cubed";
}
Expand Down Expand Up @@ -104,6 +106,7 @@ mod tests {
test::<l::attometer, t::second, j::attometer_per_second_cubed>();
test::<l::zeptometer, t::second, j::zeptometer_per_second_cubed>();
test::<l::yoctometer, t::second, j::yoctometer_per_second_cubed>();

test::<l::foot, t::second, j::foot_per_second_cubed>();
test::<l::inch, t::second, j::inch_per_second_cubed>();
test::<l::kilometer, t::minute, j::kilometer_per_minute_cubed>();
Expand Down
6 changes: 4 additions & 2 deletions src/si/length.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ quantity! {
@mile_survey: 1.609_347_E3; "mi (U.S. survey)", "mile (U.S. survey)", "miles (U.S. survey)";
@nautical_mile: 1.852_E3; "M", "nautical mile", "nautical miles";
@parsec: 3.085_678_E16; "pc", "parsec", "parsecs";
@pica_computer: 4.233_333_333_333_333_E-3; "1/6 in (computer)", "pica (computer)", "picas (computer)";
@pica_computer: 4.233_333_333_333_333_E-3; "1/6 in (computer)", "pica (computer)",
"picas (computer)";
@pica_printers: 4.217_518_E-3; "1/6 in", "pica (printer's)", "picas (printer's)";
@point_computer: 3.527_778_E-4; "1/72 in (computer)", "point (computer)", "points (computer)";
@point_computer: 3.527_778_E-4; "1/72 in (computer)", "point (computer)",
"points (computer)";
@point_printers: 3.514_598_E-4; "1/72 in", "point (printer's)", "points (printer's)";
@rod: 5.029_21_E0; "rd", "rod", "rods";
@yard: 9.144_E-1; "yd", "yard", "yards";
Expand Down
4 changes: 2 additions & 2 deletions src/si/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ system! {
available_energy::AvailableEnergy,
capacitance::Capacitance,
density::Density,
electrical_resistance::ElectricalResistance,
electrical_conductance::ElectricalConductance,
electric_charge::ElectricCharge,
electric_current::ElectricCurrent,
electric_potential::ElectricPotential,
electrical_conductance::ElectricalConductance,
electrical_resistance::ElectricalResistance,
energy::Energy,
force::Force,
frequency::Frequency,
Expand Down

0 comments on commit 5cad47d

Please sign in to comment.