summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-05-13 00:03:02 +0200
committerpml68 <contact@pml68.dev>2025-05-13 00:03:02 +0200
commitd3c8bdf8e9126dbf9d210501a3b7078f9af5460c (patch)
tree72588a4095bbb17f6fab07239dbf73ed83dbaff6 /src/main.rs
parentchore: update `iced` (diff)
downloadiced-builder-d3c8bdf8e9126dbf9d210501a3b7078f9af5460c.tar.gz
refactor: get rid of needless `clone`
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
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,