From a28151fde17c925db456653f329f810053c0ff24 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Tue, 7 Oct 2025 13:03:10 +0700 Subject: [PATCH] chore: rename DeprecatedIsNull -> DeprecatedToPath Corrects a typo --- lib/src/lints/deprecated_to_path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/lints/deprecated_to_path.rs b/lib/src/lints/deprecated_to_path.rs index 192e645..768bcdd 100644 --- a/lib/src/lints/deprecated_to_path.rs +++ b/lib/src/lints/deprecated_to_path.rs @@ -33,11 +33,11 @@ use rowan::ast::AstNode as _; code = 17, match_with = SyntaxKind::NODE_APPLY )] -struct DeprecatedIsNull; +struct DeprecatedToPath; static ALLOWED_PATHS: &[&str; 2] = &["builtins.toPath", "toPath"]; -impl Rule for DeprecatedIsNull { +impl Rule for DeprecatedToPath { fn validate(&self, node: &SyntaxElement, _sess: &SessionInfo) -> Option { if let NodeOrToken::Node(node) = node && let Some(apply) = Apply::cast(node.clone()) -- 2.51.2