From 5629586323dfaf2067820e432176168e5bec6a65 Mon Sep 17 00:00:00 2001 From: kaphula Date: Sun, 19 Jan 2025 19:09:38 +0200 Subject: [PATCH] Run fmt. --- egui-sdl2-event-example/src/main.rs | 15 ++++++--------- lib/src/lib.rs | 2 -- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/egui-sdl2-event-example/src/main.rs b/egui-sdl2-event-example/src/main.rs index 25fb518..52152af 100644 --- a/egui-sdl2-event-example/src/main.rs +++ b/egui-sdl2-event-example/src/main.rs @@ -154,21 +154,18 @@ fn paint_and_update_textures( renderer.render(&mut render_pass, clipped_primitives, &screen_descriptor); } - // Submit the commands. queue.submit(std::iter::once(encoder.finish())); - // Redraw egui output_frame.present(); - - { - let mut rpass = egui_renderer.write(); - for id in &textures_delta.free { - rpass.free_texture(id); - } - } + { + let mut rpass = egui_renderer.write(); + for id in &textures_delta.free { + rpass.free_texture(id); + } + } } fn main() { diff --git a/lib/src/lib.rs b/lib/src/lib.rs index e59cb8f..f5abc3d 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -7,8 +7,6 @@ use sdl2::keyboard::Mod; use sdl2::mouse::{Cursor, MouseButton, SystemCursor}; use sdl2::video::Window; - - pub struct FusedCursor { pub cursor: sdl2::mouse::Cursor, pub icon: sdl2::mouse::SystemCursor,