refactor: Apply clippy suggestions
This commit is contained in:
parent
f94a8c8731
commit
be1ce0dcf0
1 changed files with 2 additions and 2 deletions
|
@ -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}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue