diff --git a/crates/egui_render_wgpu/src/painter.rs b/crates/egui_render_wgpu/src/painter.rs index 96f1207..4af3834 100644 --- a/crates/egui_render_wgpu/src/painter.rs +++ b/crates/egui_render_wgpu/src/painter.rs @@ -390,7 +390,7 @@ impl EguiPainter { let mut is_this_font_texure = false; // no need for mipmaps if we are dealing with font texture let mip_level_count = match tex_id { - TextureId::Managed(tid) if tid == 0 => { + TextureId::Managed(0) => { is_this_font_texure = true; 1 } diff --git a/crates/egui_render_wgpu/src/surface.rs b/crates/egui_render_wgpu/src/surface.rs index f57327a..927bda5 100644 --- a/crates/egui_render_wgpu/src/surface.rs +++ b/crates/egui_render_wgpu/src/surface.rs @@ -25,6 +25,7 @@ impl Drop for SurfaceManager { } } impl SurfaceManager { + #[allow(clippy::too_many_arguments)] pub fn new( window: Option, transparent: Option, @@ -123,8 +124,7 @@ impl SurfaceManager { if transparent.unwrap_or_default() { use CompositeAlphaMode::*; - let alpha_modes: Vec = - capabilities.alpha_modes.iter().copied().collect(); + let alpha_modes: Vec = capabilities.alpha_modes.to_vec(); tracing::info!(?alpha_modes, "supported alpha modes"); { self.surface_config.alpha_mode = if alpha_modes.contains(&Inherit) {