Skip to content

Commit 7270760

Browse files
committed
style(F56): fixed some clippy issues about redundancy
1 parent 75fa239 commit 7270760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/float_56.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl PartialEq for F56 {
4242
if self_as_f64.is_nan() && other_as_f64.is_nan() {
4343
return true;
4444
};
45-
return F56::round_f64_to_f56_precision(self_as_f64 - other_as_f64) == 0.0;
45+
F56::round_f64_to_f56_precision(self_as_f64 - other_as_f64) == 0.0
4646
}
4747
}
4848
impl Hash for F56 {
@@ -207,7 +207,7 @@ impl From<F56> for f32 {
207207
impl FromStr for F56 {
208208
type Err = std::num::ParseFloatError;
209209
fn from_str(s: &str) -> Result<Self, Self::Err> {
210-
f64::from_str(s).map(|f| F56::from(f))
210+
f64::from_str(s).map(F56::from)
211211
}
212212
}
213213
impl F56 {

0 commit comments

Comments
 (0)