Skip to content

Commit

Permalink
style(F56): fixed some clippy issues about redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLove committed Mar 8, 2024
1 parent 75fa239 commit 7270760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/src/float_56.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl PartialEq for F56 {
if self_as_f64.is_nan() && other_as_f64.is_nan() {
return true;
};
return F56::round_f64_to_f56_precision(self_as_f64 - other_as_f64) == 0.0;
F56::round_f64_to_f56_precision(self_as_f64 - other_as_f64) == 0.0
}
}
impl Hash for F56 {
Expand Down Expand Up @@ -207,7 +207,7 @@ impl From<F56> for f32 {
impl FromStr for F56 {
type Err = std::num::ParseFloatError;
fn from_str(s: &str) -> Result<Self, Self::Err> {
f64::from_str(s).map(|f| F56::from(f))
f64::from_str(s).map(F56::from)
}
}
impl F56 {
Expand Down

0 comments on commit 7270760

Please sign in to comment.