Skip to content

Commit 98568ef

Browse files
authored
Update command.rs (#111)
Hash and Hasher imports should not be under debug_assertions as it causes issues with --release compilations fn hash<H: Hasher>(&self, state: &mut H) { ^^^^^^ not found in this scope
1 parent 68b49e6 commit 98568ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/resp/command.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use crate::resp::{CommandArgs, ToArgs};
2+
3+
use std::hash::{Hash, Hasher};
4+
25
#[cfg(debug_assertions)]
3-
use std::{
4-
hash::{Hash, Hasher},
5-
sync::atomic::{AtomicUsize, Ordering},
6-
};
6+
use std::sync::atomic::{AtomicUsize, Ordering};
77

88
#[cfg(debug_assertions)]
99
static COMMAND_SEQUENCE_COUNTER: AtomicUsize = AtomicUsize::new(0);

0 commit comments

Comments
 (0)