From 45b526560e766d6fa6614bb71ccb12a498e8d0c0 Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang Date: Mon, 10 Jun 2024 20:18:55 +0200 Subject: [PATCH] Fix linter issues --- src/diagnostic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diagnostic.rs b/src/diagnostic.rs index e7a3634..6783084 100644 --- a/src/diagnostic.rs +++ b/src/diagnostic.rs @@ -171,7 +171,7 @@ pub fn diagnostics_from_rcconfig( if let Some((command, span)) = &l.command { if command == "import" || command == "try-import" { diagnostics.extend(diagnostics_for_imports(rope, l, file_path)) - } else if bazel_flags.flags_by_commands.get(command).is_some() { + } else if bazel_flags.flags_by_commands.contains_key(command) { diagnostics.extend(diagnostics_for_flags(rope, l, bazel_flags)) } else { diagnostics.push(Diagnostic::new_simple(