Skip to content

Commit

Permalink
style: satisfy clippy new warnings, again
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Apr 5, 2024
1 parent ca0d465 commit 56eaf92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elfo-core/src/memory_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ mod mock_stats {
use super::MemoryStats;

thread_local! {
static STATS: Cell<Result<MemoryStats, &'static str>> = Cell::new(Err("not exists"));
static STATS: Cell<Result<MemoryStats, &'static str>> = const {
Cell::new(Err("not exists"))
};
}

pub(super) fn get() -> Result<MemoryStats, String> {
Expand Down

0 comments on commit 56eaf92

Please sign in to comment.