fix: fix lints

This commit is contained in:
Wölfchen 2024-08-01 21:31:56 +02:00 committed by ElKowar
parent 088809d7e8
commit eda9d1e803

View file

@ -59,10 +59,10 @@ impl WindowArguments {
// Ensure that the arguments passed to the window that are already interpreted by eww (id, screen) // Ensure that the arguments passed to the window that are already interpreted by eww (id, screen)
// are set to the correct values // 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())); 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()); let mon_dyn = DynVal::from(&self.monitor.clone().unwrap());
local_variables.insert(VarName::from("screen"), mon_dyn); local_variables.insert(VarName::from("screen"), mon_dyn);
} }