From 612fe385c85bd3e0dd9202614e42a7431f5510ee Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 1 May 2024 05:15:36 +0900 Subject: [PATCH] Apply clippy fixes --- src/message.rs | 2 +- src/vapid/mod.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/message.rs b/src/message.rs index bff20d49..8a1ff419 100644 --- a/src/message.rs +++ b/src/message.rs @@ -208,5 +208,5 @@ impl<'a> WebPushMessageBuilder<'a> { } fn is_base64url_char(c: char) -> bool { - return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || (c == '-' || c == '_'); + c.is_ascii_uppercase() || c.is_ascii_lowercase() || c.is_ascii_digit() || (c == '-' || c == '_') } diff --git a/src/vapid/mod.rs b/src/vapid/mod.rs index b8366d59..9fbf7d72 100644 --- a/src/vapid/mod.rs +++ b/src/vapid/mod.rs @@ -2,7 +2,6 @@ pub use self::builder::VapidSignatureBuilder; use self::key::VapidKey; -pub use self::signer::Claims; pub use self::signer::VapidSignature; use self::signer::VapidSigner;