refactor: Apply clippy suggestions

This commit is contained in:
Lucas Schwiderski 2022-12-11 12:10:02 +01:00
parent f94a8c8731
commit be1ce0dcf0
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -36,10 +36,10 @@ pub(crate) async fn run(_ctx: Arc<RwLock<sdk::Context>>, matches: &ArgMatches) -
.expect("missing required argument"); .expect("missing required argument");
if sub_matches.get_flag("half") { if sub_matches.get_flag("half") {
let hash = Murmur32::hash(&s); let hash = Murmur32::hash(s);
println!("{hash:08X}"); println!("{hash:08X}");
} else { } else {
let hash = Murmur64::hash(&s); let hash = Murmur64::hash(s);
println!("{hash:016X}"); println!("{hash:016X}");
} }