From 4af771a9226329aca41ed2391791ad9044b5629a Mon Sep 17 00:00:00 2001 From: BraveMole Date: Sun, 21 Aug 2022 20:36:42 +0200 Subject: [PATCH] Clippy - unneeded returns (#114) --- src/hash.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hash.rs b/src/hash.rs index 7d9808e2..01c4af26 100644 --- a/src/hash.rs +++ b/src/hash.rs @@ -24,7 +24,7 @@ byond_fn!(fn hash_file(algorithm, string) { byond_fn!(fn generate_totp(hex_seed) { match totp_generate(hex_seed, 0, None) { Ok(value) => Some(value), - Err(error) => return Some(format!("ERROR: {:?}", error)) + Err(error) => Some(format!("ERROR: {:?}", error)) } }); @@ -35,7 +35,7 @@ byond_fn!(fn generate_totp_tolerance(hex_seed, tolerance) { }; match totp_generate_tolerance(hex_seed, tolerance_value, None) { Ok(value) => Some(value), - Err(error) => return Some(format!("ERROR: {:?}", error)) + Err(error) => Some(format!("ERROR: {:?}", error)) } });