chore: Fix remaining clippy lints
This commit is contained in:
parent
0a016991a4
commit
5216eb50ba
14 changed files with 64 additions and 50 deletions
|
|
@ -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())
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue