Skip to content

Commit

Permalink
FIXME
Browse files Browse the repository at this point in the history
  • Loading branch information
iliekturtles committed Aug 14, 2024
1 parent a546b27 commit a55fcd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ macro_rules! unit {
if conversion.numer() >= conversion.denom() {
if let Some(numer) = conversion.numer().to_f64() {
if let Some(denom) = conversion.denom().to_f64() {
return $conversion == numer / denom
return unit!(@coefficient $($conversion),+) == numer / denom
}
}
}
Expand Down Expand Up @@ -257,7 +257,7 @@ macro_rules! unit {
if conversion.numer() >= conversion.denom() {
if let Some(numer) = conversion.numer().to_f64() {
if let Some(denom) = conversion.denom().to_f64() {
return $conversion == numer / denom
return unit!(@coefficient $($conversion),+) == numer / denom
}
}
}
Expand Down Expand Up @@ -302,7 +302,7 @@ macro_rules! unit {
if conversion.numer() >= conversion.denom() {
if let Some(numer) = conversion.numer().to_f64() {
if let Some(denom) = conversion.denom().to_f64() {
return $conversion == numer / denom
return unit!(@coefficient $($conversion),+) == numer / denom
}
}
}
Expand Down

0 comments on commit a55fcd0

Please sign in to comment.