diff --git a/crates/ewwii/src/app.rs b/crates/ewwii/src/app.rs index 2084ca4..97176b5 100644 --- a/crates/ewwii/src/app.rs +++ b/crates/ewwii/src/app.rs @@ -823,11 +823,7 @@ impl App { crate::opts::WidgetControlAction::AddClass { class, widget_name } => { if let Ok(mut maybe_registry) = self.widget_reg_store.lock() { if let Some(widget_registry) = maybe_registry.as_mut() { - widget_registry.update_class_of_widget_by_name( - &widget_name, - &class, - false, - ); + widget_registry.update_class_of_widget_by_name(&widget_name, &class, false); } else { log::error!("Widget registry is empty"); } @@ -838,11 +834,7 @@ impl App { crate::opts::WidgetControlAction::RemoveClass { class, widget_name } => { if let Ok(mut maybe_registry) = self.widget_reg_store.lock() { if let Some(widget_registry) = maybe_registry.as_mut() { - widget_registry.update_class_of_widget_by_name( - &widget_name, - &class, - true, - ); + widget_registry.update_class_of_widget_by_name(&widget_name, &class, true); } else { log::error!("Widget registry is empty"); } diff --git a/crates/ewwii/src/widgets/widget_definitions.rs b/crates/ewwii/src/widgets/widget_definitions.rs index a926c5b..7a31bef 100644 --- a/crates/ewwii/src/widgets/widget_definitions.rs +++ b/crates/ewwii/src/widgets/widget_definitions.rs @@ -596,11 +596,11 @@ pub(super) fn build_widgetaction_util( } Some("set-property") => { - if let (Some(prop), Some(value)) = (parts.next(), parts.next()) { + if let (Some(prop), Some(value)) = + (parts.next(), parts.next()) + { set_property_from_string_anywhere( - &child, - &prop, - &value, + &child, &prop, &value, ); } } @@ -612,7 +612,6 @@ pub(super) fn build_widgetaction_util( } } } - ) ) );