1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Fix some clippy issues found by 1.84.0 (#5603)

This commit is contained in:
Emil Ernerfeldt
2025-01-13 08:29:13 +01:00
committed by GitHub
parent 1339639706
commit 164f56f554
33 changed files with 65 additions and 81 deletions

View File

@@ -344,7 +344,7 @@ impl<'app> GlowWinitApp<'app> {
}
}
impl<'app> WinitApp for GlowWinitApp<'app> {
impl WinitApp for GlowWinitApp<'_> {
fn egui_ctx(&self) -> Option<&egui::Context> {
self.running.as_ref().map(|r| &r.integration.egui_ctx)
}
@@ -479,7 +479,7 @@ impl<'app> WinitApp for GlowWinitApp<'app> {
}
}
impl<'app> GlowWinitRunning<'app> {
impl GlowWinitRunning<'_> {
fn run_ui_and_paint(
&mut self,
event_loop: &ActiveEventLoop,

View File

@@ -323,7 +323,7 @@ impl<'app> WgpuWinitApp<'app> {
}
}
impl<'app> WinitApp for WgpuWinitApp<'app> {
impl WinitApp for WgpuWinitApp<'_> {
fn egui_ctx(&self) -> Option<&egui::Context> {
self.running.as_ref().map(|r| &r.integration.egui_ctx)
}
@@ -487,7 +487,7 @@ impl<'app> WinitApp for WgpuWinitApp<'app> {
}
}
impl<'app> WgpuWinitRunning<'app> {
impl WgpuWinitRunning<'_> {
fn save_and_destroy(&mut self) {
profiling::function_scope!();