Selaa lähdekoodia

Canonicalize the base representation

David Peter 2 vuotta sitten
vanhempi
sitoutus
de50beacb9
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      numbat/src/unit.rs

+ 2 - 1
numbat/src/unit.rs

@@ -167,7 +167,8 @@ impl Unit {
                      exponent,
                  }| { base_unit.corresponding_base_unit().power(*exponent) },
             )
-            .product();
+            .product::<Self>()
+            .canonicalized();
 
         let factor = self
             .iter()