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 63bcf11 commit b6f27d6Copy full SHA for b6f27d6
time/src/parsing/iso8601.rs
@@ -315,19 +315,13 @@ fn round(value: f64) -> f64 {
315
}
316
#[cfg(not(feature = "std"))]
317
{
318
- round_impl(value)
319
- }
320
-}
+ debug_assert!(value.is_sign_positive() && !value.is_nan());
321
322
-#[cfg(not(feature = "std"))]
323
-#[expect(clippy::missing_docs_in_private_items)]
324
-fn round_impl(value: f64) -> f64 {
325
- debug_assert!(value.is_sign_positive() && !value.is_nan());
326
-
327
- let f = value % 1.;
328
- if f < 0.5 {
329
- value - f
330
- } else {
331
- value - f + 1.
+ let f = value % 1.;
+ if f < 0.5 {
+ value - f
+ } else {
+ value - f + 1.
+ }
332
333
0 commit comments