Skip to content

Commit

Permalink
chore: dont do implicit return
Browse files Browse the repository at this point in the history
  • Loading branch information
dracarys18 committed Apr 22, 2024
1 parent 31542f3 commit 6eaffca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions time/src/formatting/mod.rs
Expand Up @@ -60,9 +60,10 @@ impl core::fmt::Display for FloatNum {
let trunc_num = 10.0_f64.powi(precision);
let num_to_format = f64::trunc(self.0 * trunc_num) / trunc_num;

return num_to_format.fmt(fmt);
num_to_format.fmt(fmt)
} else {
self.0.fmt(fmt)

Check warning on line 65 in time/src/formatting/mod.rs

View check run for this annotation

Codecov / codecov/patch

time/src/formatting/mod.rs#L65

Added line #L65 was not covered by tests
}
self.0.fmt(fmt)
}
}

Expand Down

0 comments on commit 6eaffca

Please sign in to comment.