We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6811049 commit 86791a4Copy full SHA for 86791a4
1 file changed
src/units.rs
@@ -27,9 +27,9 @@ macro_rules! base_unit_struct {
27
}
28
29
impl std::ops::Div<$name> for $name {
30
- type Output = $name;
31
- fn div(self, rhs: $name) -> $name {
32
- $name(self.0 / rhs.0)
+ type Output = Dimensionless;
+ fn div(self, rhs: $name) -> Dimensionless {
+ Dimensionless(self.0 / rhs.0)
33
34
35
impl std::iter::Sum for $name {
0 commit comments