-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make insert_non_basic_units
a method
#4805
Conversation
ConverterFactory
to its classinsert_non_basic_units
a method
@@ -38,6 +38,21 @@ impl From<Sign> for num_bigint::Sign { | |||
} | |||
} | |||
|
|||
/// A struct that contains the sum and difference of base unit powers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: keep this in the method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunatley, it is used as output that is used in other places
Notice: map: &mut LiteMap<u16, PowersInfo>,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this PR is worth it then. insert_non_basic_units
is an implementation detail of is_reciprocal
, and PowersInfo
is an implementation detail of that. Having them both at the top level is not well encapsulated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
No description provided.