mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-23 10:53:37 +00:00
Fix clippy error
I'm unsure if this was already present on `main`, but let's fix it anyhow to fix CI.
This commit is contained in:
1 parent
72e5ae40b0
commit
6528bbc797
1 file changed
+1
-2
@@ -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`.
|
||||
|
||||
Reference in new issue
Block a user