Skip to content

Commit

Permalink
Fix some clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
printfn committed Feb 15, 2025
1 parent f05c95c commit c4a7b2a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/num/biguint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ impl BigUint {
Ordering::Equal => return Self::from(0),
Ordering::Less => unreachable!("number would be less than 0"),
Ordering::Greater => (),
};
}
if other.is_zero() {
return self;
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/num/continued_fraction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ impl<F: Fn() -> Option<BigUint>> Iterator for HomographicIterator<F> {
self.state = HomographicState::Terminated;
return None;
}
};
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/num/unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ impl Value {
}
Err(FendError::Interrupted) => return Err(FendError::Interrupted),
Err(_) => (),
};
}
}
res_components.push(comp.clone());
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ fn parse_implicit_addition(input: &[Token]) -> ParseResult<'_> {
Expr::Bop(Bop::ImplicitPlus, Box::new(res), Box::new(rhs)),
remaining,
));
};
}
}
Ok((res, input))
}
Expand Down

0 comments on commit c4a7b2a

Please sign in to comment.