chore: run cargo fmt
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user