passing tests

This commit is contained in:
Jack Mac 2021-10-06 10:36:57 -04:00 committed by Jonathan Spira
parent e650a02ced
commit 4a2d847b3a
2 changed files with 4 additions and 6 deletions

View File

@ -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;
}
}

View File

@ -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<MouseCursor> {