From 493a09e1a67d4565d713f8dfb64211c3cf5639c1 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 22 Jan 2023 16:57:41 +0100 Subject: [PATCH] cargo fmt --- src/time/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/time/mod.rs b/src/time/mod.rs index 560c48e..9d94b67 100644 --- a/src/time/mod.rs +++ b/src/time/mod.rs @@ -382,7 +382,12 @@ fn get_new_stamp_after_addition( new_subsec_millis -= 1000; increment_seconds(1); } - increment_seconds(duration.as_secs().try_into().expect("duration seconds exceeds u32::MAX")); + increment_seconds( + duration + .as_secs() + .try_into() + .expect("duration seconds exceeds u32::MAX"), + ); UnixTimestamp::const_new(new_unix_seconds, new_subsec_millis) }