aboutsummaryrefslogtreecommitdiff
path: root/src/handlers/view.rs
diff options
context:
space:
mode:
authorRubén Beltrán del Río <jj@r.bdr.sh>2026-03-26 23:26:23 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-03-26 23:44:35 +0100
commitc2465ff46ea2503cf839efdd90ccc5174f84fbe8 (patch)
treea02e710e04bb1b1068534427b5bb8235f1071cde /src/handlers/view.rs
parent1f28cbdf1dbe26e4c7da27323a0202a3276cb3a7 (diff)
Address clippy issues
Diffstat (limited to 'src/handlers/view.rs')
-rw-r--r--src/handlers/view.rs10
1 files changed, 7 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
-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));
}