summaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
Diffstat (limited to 'src/types')
-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",