From 66124454e3145680c19f36b83e401fc252fc169c Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Thu, 26 Dec 2019 00:10:15 -0600 Subject: [PATCH] refactor/polish ~ fix `cargo clippy` complaints (remove `->()`) --- src/hashsum/hashsum.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hashsum/hashsum.rs b/src/hashsum/hashsum.rs index f32f3e307..ad4514c77 100644 --- a/src/hashsum/hashsum.rs +++ b/src/hashsum/hashsum.rs @@ -96,7 +96,7 @@ fn detect_algo( }, _ => { { - let mut set_or_crash = |n, val, bits| -> () { + let mut set_or_crash = |n, val, bits| { if alg.is_some() { crash!(1, "You cannot combine multiple hash algorithms!") };