From eda9d1e80369af9d116524d6064db12219bcd4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C3=B6lfchen?= <115360611+W-lfchen@users.noreply.github.com> Date: Thu, 1 Aug 2024 21:31:56 +0200 Subject: [PATCH] fix: fix lints --- crates/eww/src/window_arguments.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/eww/src/window_arguments.rs b/crates/eww/src/window_arguments.rs index 44681e9..5a07979 100644 --- a/crates/eww/src/window_arguments.rs +++ b/crates/eww/src/window_arguments.rs @@ -59,10 +59,10 @@ impl WindowArguments { // Ensure that the arguments passed to the window that are already interpreted by eww (id, screen) // are set to the correct values - if expected_args.contains(&"id".to_string()) { + if expected_args.contains(&String::from("id")) { local_variables.insert(VarName::from("id"), DynVal::from(self.instance_id.clone())); } - if self.monitor.is_some() && expected_args.contains(&"screen".to_string()) { + if self.monitor.is_some() && expected_args.contains(&String::from("screen")) { let mon_dyn = DynVal::from(&self.monitor.clone().unwrap()); local_variables.insert(VarName::from("screen"), mon_dyn); }