summaryrefslogtreecommitdiff
path: root/src/types/project.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-02-16 13:49:34 +0100
committerpml68 <contact@pml68.dev>2025-02-16 13:49:34 +0100
commit9342bd0e57126909776b95b0761ad5bef3b416f6 (patch)
tree2fba1bfc5ff691c0c601a4caa28468bfa558359c /src/types/project.rs
parentchore: update dependencies (diff)
downloadiced-builder-9342bd0e57126909776b95b0761ad5bef3b416f6.tar.gz
refactor: random stuff
Diffstat (limited to 'src/types/project.rs')
-rw-r--r--src/types/project.rs36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/types/project.rs b/src/types/project.rs
index 27c576b..18247ae 100644
--- a/src/types/project.rs
+++ b/src/types/project.rs
@@ -122,30 +122,30 @@ impl Project {
let app_code = format!(
r#"// Automatically generated by iced Builder
- use iced::{{widget::{{{imports}}},Element}};
- {theme_imports}
+use iced::{{widget::{{{imports}}},Element}};
+{theme_imports}
- fn main() -> iced::Result {{
- iced::application("{}", State::update, State::view).theme(State::theme).run()
- }}
+fn main() -> iced::Result {{
+ iced::application("{}", State::update, State::view).theme(State::theme).run()
+}}
- #[derive(Default)]
- struct State;
+#[derive(Default)]
+struct State;
- #[derive(Debug, Clone)]
- enum Message {{}}
+#[derive(Debug, Clone)]
+enum Message {{}}
- impl State {{
- fn update(&mut self, _message: Message) {{}}
+impl State {{
+ fn update(&mut self, _message: Message) {{}}
- fn theme(&self) -> iced::Theme {{
- iced::Theme::{}
- }}
+ fn theme(&self) -> iced::Theme {{
+ iced::Theme::{}
+ }}
- fn view(&self) -> Element<Message> {{
- {view}.into()
- }}
- }}"#,
+ fn view(&self) -> Element<Message> {{
+ {view}.into()
+ }}
+}}"#,
match self.title {
Some(ref t) => t,
None => "New app",