small structure changes

This commit is contained in:
2024-11-18 04:00:50 +01:00
parent aa9d68f16f
commit 15fb611870
8 changed files with 275 additions and 185 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
use osui::{app::run, rsx, ui::*, Element};
use osui::prelude::*;
fn main() {
while run(&mut app()) {}
}
fn app() -> Box<dyn Element> {
fn app() -> Element {
rsx! {
text { "Hello, World!" }
button { "This is a button!" }
}
}