chore: Fix remaining clippy lints

This commit is contained in:
Victoria Brekenfeld 2026-03-20 13:40:06 +01:00 committed by Victoria Brekenfeld
parent 0a016991a4
commit 5216eb50ba
14 changed files with 64 additions and 50 deletions

View file

@ -747,7 +747,7 @@ impl KmsGuard<'_> {
.crtcs()
.iter()
.filter(|crtc| {
device.inner.surfaces.get(crtc).is_none()
!device.inner.surfaces.contains_key(crtc)
// TODO: We can't do this. See https://github.com/Smithay/smithay/pull/1820
//.is_some_and(|surface| surface.output.is_enabled())
})

View file

@ -511,8 +511,10 @@ fn surface_thread(
let egui = {
let state =
smithay_egui::EguiState::new(smithay::utils::Rectangle::from_size((400, 800).into()));
let mut visuals: egui::style::Visuals = Default::default();
visuals.window_shadow = egui::Shadow::NONE;
let visuals = egui::style::Visuals {
window_shadow: egui::Shadow::NONE,
..Default::default()
};
state.context().set_visuals(visuals);
state
};

View file

@ -44,6 +44,7 @@ use tracing::{debug, error, info, warn};
use super::render::{ScreenFilterStorage, init_shaders};
#[derive(Debug)]
#[allow(clippy::large_enum_variant)]
enum Allocator {
Gbm(GbmAllocator<DrmDeviceFd>),
Vulkan(PhysicalDevice),