diff options
| author | pml68 <contact@pml68.dev> | 2025-06-10 23:47:40 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-06-10 23:47:40 +0200 |
| commit | 2e1bbf7dc90652e5964e5912a53e1edba3737185 (patch) | |
| tree | ade03879165da4c5fb6dde855d2747abf1a5ae01 /src/main.rs | |
| parent | feat: dialog improvements (diff) | |
| download | iced-builder-2e1bbf7dc90652e5964e5912a53e1edba3737185.tar.gz | |
chore: update deps
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/src/main.rs b/src/main.rs index 6be8d5c..eee354d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,7 +28,7 @@ use material_theme::Theme; use panes::{code_view, designer_view, element_list}; use types::{Action, DesignerPane, Element, Message, Project}; -fn main() -> Result<(), Box<dyn std::error::Error>> { +fn main() -> iced::Result { let version = std::env::args() .nth(1) .is_some_and(|s| s == "--version" || s == "-V"); @@ -40,21 +40,15 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { return Ok(()); } - iced::application( - IcedBuilder::boot, - IcedBuilder::update, - IcedBuilder::view, - ) - .title(IcedBuilder::title) - .subscription(IcedBuilder::subscription) - .theme(IcedBuilder::theme) - .exit_on_close_request(false) - .font(icon::FONT) - .antialiasing(true) - .centered() - .run()?; - - Ok(()) + iced::application(IcedBuilder::boot, IcedBuilder::update, IcedBuilder::view) + .title(IcedBuilder::title) + .subscription(IcedBuilder::subscription) + .theme(IcedBuilder::theme) + .exit_on_close_request(false) + .font(icon::FONT) + .antialiasing(true) + .centered() + .run() } struct IcedBuilder { |
