mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-05-25 22:54:19 +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:
@@ -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