Skip to content

Commit 4af771a

Browse files
authored
Clippy - unneeded returns (#114)
1 parent 93ae889 commit 4af771a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hash.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ byond_fn!(fn hash_file(algorithm, string) {
2424
byond_fn!(fn generate_totp(hex_seed) {
2525
match totp_generate(hex_seed, 0, None) {
2626
Ok(value) => Some(value),
27-
Err(error) => return Some(format!("ERROR: {:?}", error))
27+
Err(error) => Some(format!("ERROR: {:?}", error))
2828
}
2929
});
3030

@@ -35,7 +35,7 @@ byond_fn!(fn generate_totp_tolerance(hex_seed, tolerance) {
3535
};
3636
match totp_generate_tolerance(hex_seed, tolerance_value, None) {
3737
Ok(value) => Some(value),
38-
Err(error) => return Some(format!("ERROR: {:?}", error))
38+
Err(error) => Some(format!("ERROR: {:?}", error))
3939
}
4040
});
4141

0 commit comments

Comments
 (0)