Skip to content

Commit 20b94a2

Browse files
committed
fmt
1 parent 3a545c9 commit 20b94a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/utils/calc.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,8 @@ impl SlotCalculator {
240240
let timestamp = now.timestamp() as u64;
241241
let millis = now.timestamp_subsec_millis() as u64;
242242

243-
self.point_within_slot(timestamp).map(|point| {
244-
std::time::Duration::from_secs(point).as_millis() as u64 + millis
245-
})
243+
self.point_within_slot(timestamp)
244+
.map(|point| std::time::Duration::from_secs(point).as_millis() as u64 + millis)
246245
}
247246

248247
/// Calculates the slot that starts at the given timestamp.

0 commit comments

Comments
 (0)