Add imports in tag_hash macro
parent
53fa3d03da
commit
c1a64d6c33
|
@ -22,6 +22,8 @@
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! tag_hash {
|
macro_rules! tag_hash {
|
||||||
($tag:ident) => {{
|
($tag:ident) => {{
|
||||||
|
use std::collections::hash_map::DefaultHasher;
|
||||||
|
use std::hash::Hasher;
|
||||||
let mut hasher = DefaultHasher::new();
|
let mut hasher = DefaultHasher::new();
|
||||||
hasher.write($tag.as_bytes());
|
hasher.write($tag.as_bytes());
|
||||||
hasher.finish()
|
hasher.finish()
|
||||||
|
|
Loading…
Reference in New Issue