From 85ff3d5b86e81d91295aad06d415ced7fd8250a4 Mon Sep 17 00:00:00 2001 From: Piotr Podusowski Date: Tue, 18 Jul 2023 21:11:00 +0200 Subject: [PATCH] rename --- examples/osm.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/osm.rs b/examples/osm.rs index bd766db1..a4688af2 100644 --- a/examples/osm.rs +++ b/examples/osm.rs @@ -6,16 +6,16 @@ fn main() -> Result<(), eframe::Error> { eframe::run_native( "OpenStreetMap", Default::default(), - Box::new(|cc| Box::new(Osm::new(cc.egui_ctx.clone()))), + Box::new(|cc| Box::new(MyApp::new(cc.egui_ctx.clone()))), ) } -struct Osm { +struct MyApp { tiles: Tiles, map_memory: MapMemory, } -impl Osm { +impl MyApp { fn new(egui_ctx: Context) -> Self { Self { tiles: Tiles::new(walkers::openstreetmap, egui_ctx), @@ -24,7 +24,7 @@ impl Osm { } } -impl eframe::App for Osm { +impl eframe::App for MyApp { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { egui::CentralPanel::default().show(ctx, |ui| { ui.horizontal(|ui| {