chore: run cargo fmt

This commit is contained in:
Byson94
2025-11-29 20:45:31 +05:30
parent ddce15481f
commit 97518eb49c
2 changed files with 6 additions and 15 deletions

View File

@@ -823,11 +823,7 @@ impl<B: DisplayBackend> App<B> {
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<B: DisplayBackend> App<B> {
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");
}

View File

@@ -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(
}
}
}
)
)
);