Skip to content

Commit 1c5494a

Browse files
committed
rustfmt: Run on util/time.rs
1 parent b746473 commit 1c5494a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/util/time.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
//! A simple module which either re-exports [`std::time::Instant`] or a mocked version of it for
88
//! tests.
99
10-
#[cfg(test)]
11-
pub use test::Instant;
1210
#[cfg(not(test))]
1311
pub use std::time::Instant;
12+
#[cfg(test)]
13+
pub use test::Instant;
1414

1515
#[cfg(test)]
1616
mod test {
17-
use core::time::Duration;
18-
use core::ops::Sub;
1917
use core::cell::Cell;
18+
use core::ops::Sub;
19+
use core::time::Duration;
2020

2121
/// Time that can be advanced manually in tests.
2222
#[derive(Clone, Copy, Debug, PartialEq, Eq)]

0 commit comments

Comments
 (0)