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:
Andrew Morgan
2026-05-05 20:25:44 +01:00
parent 72e5ae40b0
commit 6528bbc797
+1 -2
View File
@@ -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`.