1 #![warn(clippy::unit_hash)]
2 #![allow(clippy::let_unit_value)]
4 use std::collections::hash_map::DefaultHasher;
15 let mut state = DefaultHasher::new();
16 let my_enum = Foo::Empty;
19 Foo::Empty => ().hash(&mut state),
20 Foo::WithValue(x) => x.hash(&mut state),
26 #[allow(clippy::unit_arg)]
27 do_nothing().hash(&mut state);