diff --git a/imgui-sdl2-support/examples/basic.rs b/imgui-sdl2-support/examples/basic.rs index 361b4c5..4180f78 100644 --- a/imgui-sdl2-support/examples/basic.rs +++ b/imgui-sdl2-support/examples/basic.rs @@ -63,10 +63,8 @@ fn main() { /* pass all events to imgui platfrom */ platform.handle_event(&mut imgui, &event); - match event { - Event::Quit { .. } => break 'main, - - _ => {} + if let Event::Quit { .. } = event { + break 'main; } } diff --git a/imgui/src/context.rs b/imgui/src/context.rs index c1c1176..de346a8 100644 --- a/imgui/src/context.rs +++ b/imgui/src/context.rs @@ -545,12 +545,12 @@ impl Context { } /// Returns the currently desired mouse cursor type. - /// + /// /// This was set *last frame* by the [Ui] object, and will be reset when /// [new_frame] is called. /// /// Returns `None` if no cursor should be displayed - /// + /// /// [new_frame]: Self::new_frame #[doc(alias = "GetMouseCursor")] pub fn mouse_cursor(&self) -> Option {