From 8fdea033bc4ab9f2318153bac0738157b391aad3 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 13 Jul 2024 07:48:07 +0300 Subject: Fix Clippy warnings --- niri-config/tests/wiki-parses.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/niri-config/tests/wiki-parses.rs b/niri-config/tests/wiki-parses.rs index ca7e9b75..5ea1f761 100644 --- a/niri-config/tests/wiki-parses.rs +++ b/niri-config/tests/wiki-parses.rs @@ -14,7 +14,7 @@ fn extract_kdl_from_file(file_contents: &str, filename: &str) -> Vec from callouts that might contain ```kdl``` let line = line.trim(); - if line.starts_with(">") { + if line.starts_with('>') { if line.len() == 1 { "" } else { @@ -58,7 +58,7 @@ fn extract_kdl_from_file(file_contents: &str, filename: &str) -> Vec