From 6528bbc797d6400d2f68331a63f0fe64eb1f2172 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Tue, 5 May 2026 20:25:44 +0100 Subject: [PATCH] Fix clippy error I'm unsure if this was already present on `main`, but let's fix it anyhow to fix CI. --- crates/oauth2-types/src/scope.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/oauth2-types/src/scope.rs b/crates/oauth2-types/src/scope.rs index f9832b5c0..3063e24bf 100644 --- a/crates/oauth2-types/src/scope.rs +++ b/crates/oauth2-types/src/scope.rs @@ -166,8 +166,7 @@ impl Scope { #[must_use] pub fn contains(&self, token: &str) -> bool { ScopeToken::from_str(token) - .map(|token| self.0.contains(&token)) - .unwrap_or(false) + .is_ok_and(|token| self.0.contains(&token)) } /// Inserts the given token in this `Scope`.