Skip to content

Commit

Permalink
Fix 1.41 clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ramosbugs committed Aug 31, 2020
1 parent 57a3ea3 commit f4a7abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/jwk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,15 @@ impl CoreRsaPrivateSigningKey {
fn lax_base64_parsing(input: &str) -> String {
input
.chars()
.filter(Self::keep_char_in_lax_base64_parsing)
.filter(|c| Self::keep_char_in_lax_base64_parsing(*c))
.collect()
}

/// Returns whether a character is part of the base64 or should
/// be removed in accordance to lax base64 parsing.
///
/// RFC 7468 Lax Parsing
fn keep_char_in_lax_base64_parsing(input: &char) -> bool {
fn keep_char_in_lax_base64_parsing(input: char) -> bool {
match input {
' ' | '\n' | '\t' | '\r' | '\x0b' | '\x0c' => false,
_ => true,
Expand Down

0 comments on commit f4a7abe

Please sign in to comment.