We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75fa239 commit 7270760Copy full SHA for 7270760
vm/src/float_56.rs
@@ -42,7 +42,7 @@ impl PartialEq for F56 {
42
if self_as_f64.is_nan() && other_as_f64.is_nan() {
43
return true;
44
};
45
- 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
46
}
47
48
impl Hash for F56 {
@@ -207,7 +207,7 @@ impl From<F56> for f32 {
207
impl FromStr for F56 {
208
type Err = std::num::ParseFloatError;
209
fn from_str(s: &str) -> Result<Self, Self::Err> {
210
- f64::from_str(s).map(|f| F56::from(f))
+ f64::from_str(s).map(F56::from)
211
212
213
impl F56 {
0 commit comments