Skip to content

Commit f38ff9c

Browse files
maxblacuviper
andauthored
Implement @cuviper's suggested change
Co-Authored-By: Josh Stone <[email protected]>
1 parent e10ca81 commit f38ff9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ impl<T: Clone + Integer> Ord for Ratio<T> {
385385

386386
// With equal numerators, the denominators can be inversely compared
387387
if self.numer == other.numer {
388-
if T::is_zero(self.numer()) {
388+
if self.numer.is_zero() {
389389
return cmp::Ordering::Equal;
390390
}
391391
let ord = self.denom.cmp(&other.denom);

0 commit comments

Comments
 (0)