Skip to content

Commit

Permalink
fix: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-engel committed Dec 23, 2024
1 parent fe5fdd3 commit f7efc75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub fn get_secret_from_file_or_input(
alg: &Algorithm,
secret_string: &str,
) -> (Vec<u8>, SecretType) {
return match alg {
match alg {
Algorithm::HS256 | Algorithm::HS384 | Algorithm::HS512 => {
if secret_string.starts_with('@') {
(
Expand Down Expand Up @@ -118,7 +118,7 @@ pub fn get_secret_from_file_or_input(
(secret_string.as_bytes().to_vec(), SecretType::Jwks)
}
}
};
}
}

fn strip_leading_symbol(secret_string: &str) -> String {
Expand Down

0 comments on commit f7efc75

Please sign in to comment.