diff options
| author | pml68 <contact@pml68.dev> | 2025-05-13 00:03:02 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-05-13 00:03:02 +0200 |
| commit | d3c8bdf8e9126dbf9d210501a3b7078f9af5460c (patch) | |
| tree | 72588a4095bbb17f6fab07239dbf73ed83dbaff6 /src/main.rs | |
| parent | chore: update `iced` (diff) | |
| download | iced-builder-d3c8bdf8e9126dbf9d210501a3b7078f9af5460c.tar.gz | |
refactor: get rid of needless `clone`
Diffstat (limited to '')
| -rw-r--r-- | src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<dyn std::error::Error>> { } 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<Message>) { + fn boot() -> (Self, Task<Message>) { let state = pane_grid::State::with_configuration( pane_grid::Configuration::Split { axis: pane_grid::Axis::Vertical, |
