1 #![warn(clippy::unit_hash)]
3 use std::collections::hash_map::DefaultHasher;
14 let mut state = DefaultHasher::new();
15 let my_enum = Foo::Empty;
18 Foo::Empty => ().hash(&mut state),
19 Foo::WithValue(x) => x.hash(&mut state),
25 #[allow(clippy::unit_arg)]
26 do_nothing().hash(&mut state);