···11-use crate::{session::SessionInfo, Metadata, Report, Rule};
11+use crate::{Metadata, Report, Rule, session::SessionInfo};
2233use if_chain::if_chain;
44use macros::lint;
55use rnix::{
66- types::{Apply, TypedNode},
76 NodeOrToken, SyntaxElement, SyntaxKind,
77+ types::{Apply, TypedNode},
88};
991010/// ## What it does
···4646 if let NodeOrToken::Node(node) = node;
4747 if let Some(apply) = Apply::cast(node.clone());
4848 let lambda_path = apply.lambda()?.to_string();
4949- if ALLOWED_PATHS.iter().any(|&p| p == lambda_path.as_str());
4949+ if ALLOWED_PATHS.contains(&lambda_path.as_str());
5050 then {
5151 let at = node.text_range();
5252 let message = format!("`{lambda_path}` is deprecated, see `:doc builtins.toPath` within the REPL for more");