mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Enable and fix some more clippy lints (#7426)
One can never have too many lints
This commit is contained in:
@@ -336,10 +336,10 @@ impl<'app> GlowWinitApp<'app> {
|
||||
}
|
||||
|
||||
Ok(self.running.insert(GlowWinitRunning {
|
||||
glutin,
|
||||
painter,
|
||||
integration,
|
||||
app,
|
||||
glutin,
|
||||
painter,
|
||||
}))
|
||||
}
|
||||
}
|
||||
@@ -362,8 +362,12 @@ impl WinitApp for GlowWinitApp<'_> {
|
||||
|
||||
fn window_id_from_viewport_id(&self, id: ViewportId) -> Option<WindowId> {
|
||||
self.running
|
||||
.as_ref()
|
||||
.and_then(|r| r.glutin.borrow().window_from_viewport.get(&id).copied())
|
||||
.as_ref()?
|
||||
.glutin
|
||||
.borrow()
|
||||
.window_from_viewport
|
||||
.get(&id)
|
||||
.copied()
|
||||
}
|
||||
|
||||
fn save(&mut self) {
|
||||
|
||||
Reference in New Issue
Block a user