Skip to content

Commit

Permalink
style: satisfy clippy new warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Apr 5, 2024
1 parent 3ec1de0 commit 45168b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elfo-utils/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ pub use mock::*;

#[cfg(any(test, feature = "test-util"))]
mod mock {
use std::cell::RefCell;

use super::*;

thread_local! {
pub(super) static CLOCK: std::cell::RefCell<Option<Clock>> = std::cell::RefCell::new(None);
pub(super) static CLOCK: RefCell<Option<Clock>> = const{ RefCell::new(None) };
}

/// Mocks `Instant`, see [`InstantMock`].
Expand Down

0 comments on commit 45168b4

Please sign in to comment.