diff --git a/src/gui.rs b/src/gui.rs index 76c9d59..481743c 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -1,10 +1,10 @@ use eframe::egui; -pub struct MyApp { +pub struct Omelt { name: String, age: u32, } -impl Default for MyApp { +impl Default for Omelt { fn default() -> Self { Self { name: "Arthur".to_owned(), @@ -13,7 +13,7 @@ impl Default for MyApp { } } -impl eframe::App for MyApp { +impl eframe::App for Omelt { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { egui::CentralPanel::default().show(ctx, |ui| { ui.heading("My egui Application"); diff --git a/src/main.rs b/src/main.rs index 2b1cd1c..39be84a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ mod node; mod read_and_write; use byte_writer::{binary_to_string, string_to_binary}; -use gui::MyApp; +use gui::Omelt; use node::{Node, create_tree, nodes_at_vec, read_tree, tree_to_map, tree_to_string}; use read_and_write::{body_to_bin, get_map_file, is_valid_file, read_n_bytes}; @@ -120,7 +120,7 @@ fn main() -> std::io::Result<()> { // This gives us image support: egui_extras::install_image_loaders(&cc.egui_ctx); - Ok(Box::::default()) + Ok(Box::::default()) }), ); }