Skip to content

humidity default is inconsistent between impl_from_str and from_base_units #82

Description

@hkBst

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions