From d3c8bdf8e9126dbf9d210501a3b7078f9af5460c Mon Sep 17 00:00:00 2001 From: pml68 Date: Tue, 13 May 2025 00:03:02 +0200 Subject: refactor: get rid of needless `clone` --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 2779114..508b791 100644 --- a/src/main.rs +++ b/src/main.rs @@ -48,14 +48,14 @@ fn main() -> Result<(), Box> { } iced::application( - IcedBuilder::init, + IcedBuilder::boot, IcedBuilder::update, IcedBuilder::view, ) .title(IcedBuilder::title) - .font(icon::FONT) - .theme(|state| state.theme.value().clone()) .subscription(IcedBuilder::subscription) + .theme(|state| state.theme.value().clone()) + .font(icon::FONT) .antialiasing(true) .centered() .run()?; @@ -88,7 +88,7 @@ enum Panes { } impl IcedBuilder { - fn init() -> (Self, Task) { + fn boot() -> (Self, Task) { let state = pane_grid::State::with_configuration( pane_grid::Configuration::Split { axis: pane_grid::Axis::Vertical, -- cgit v1.2.3