The impl_from_str macro should probably use <$t>::from_base_units instead of $d (see end of src/measurements.rs).
Unfortunately this causes humidity tests to fail, because for humidity from_ratio is the impl of from_base_units, but $d is from_percentage. This inconsistency (factor 100 difference) causes tests to fail. Changing this would probably be a silent API change..., but I don't know.
The
impl_from_strmacro should probably use<$t>::from_base_unitsinstead of$d(see end of src/measurements.rs).Unfortunately this causes humidity tests to fail, because for humidity
from_ratiois the impl offrom_base_units, but $d isfrom_percentage. This inconsistency (factor 100 difference) causes tests to fail. Changing this would probably be a silent API change..., but I don't know.