mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
fixed clippy warnings
This commit is contained in:
@@ -530,14 +530,12 @@ impl CurveEditorWindow {
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
} else if let Some(MessageBoxMessage::Close(result)) =
|
||||
} else if let Some(MessageBoxMessage::Close(MessageBoxResult::Yes)) =
|
||||
message.data_from(self.cancel_message_box)
|
||||
{
|
||||
if let MessageBoxResult::Yes = result {
|
||||
self.revert();
|
||||
self.destroy(ui);
|
||||
return None;
|
||||
}
|
||||
self.revert();
|
||||
self.destroy(ui);
|
||||
return None;
|
||||
}
|
||||
|
||||
Some(self)
|
||||
|
||||
Reference in New Issue
Block a user