From c2465ff46ea2503cf839efdd90ccc5174f84fbe8 Mon Sep 17 00:00:00 2001 From: Rubén Beltrán del Río Date: Thu, 26 Mar 2026 23:26:23 +0100 Subject: Address clippy issues --- src/handlers/view.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/handlers/view.rs') diff --git a/src/handlers/view.rs b/src/handlers/view.rs index 87c4172..44e7e40 100644 --- a/src/handlers/view.rs +++ b/src/handlers/view.rs @@ -13,8 +13,8 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -use relm4::prelude::*; use crate::components::header::HeaderAction; +use relm4::prelude::*; use crate::AppModel; use wmap_renderer::StageType; @@ -25,7 +25,9 @@ pub fn change_orientation(model: &mut AppModel) { gtk::Orientation::Horizontal => gtk::Orientation::Vertical, _ => gtk::Orientation::Horizontal, }; - model.header.emit(HeaderAction::SetLayoutOrientation(model.orientation)); + model + .header + .emit(HeaderAction::SetLayoutOrientation(model.orientation)); } /// Updates the selected stage type from dropdown selection. @@ -37,5 +39,7 @@ pub fn stage_type_selected(model: &mut AppModel, stage_type: StageType) { /// Updates the selected stage type from dropdown selection. pub fn change_horizontal_layout(model: &mut AppModel, is_enabled: bool) { model.horizontal_layout_enabled = is_enabled; - model.header.emit(HeaderAction::SetHorizontalLayoutEnabled(is_enabled)); + model + .header + .emit(HeaderAction::SetHorizontalLayoutEnabled(is_enabled)); } -- cgit