Skip to content

Commit

Permalink
Clippy - unneeded returns (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
BraveMole authored Aug 21, 2022
1 parent 93ae889 commit 4af771a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
});

Expand All @@ -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))
}
});

Expand Down

0 comments on commit 4af771a

Please sign in to comment.