diff --git a/internal/backends/linuxkms/display.rs b/internal/backends/linuxkms/display.rs index 8b05562f351..42d6e7f45ea 100644 --- a/internal/backends/linuxkms/display.rs +++ b/internal/backends/linuxkms/display.rs @@ -4,6 +4,7 @@ use i_slint_core::api::PhysicalSize; use i_slint_core::platform::PlatformError; +#[allow(unused)] pub trait Presenter { fn is_ready_to_present(&self) -> bool; fn register_page_flip_handler( diff --git a/internal/backends/linuxkms/lib.rs b/internal/backends/linuxkms/lib.rs index 549e789ffd3..6d8640d08bd 100644 --- a/internal/backends/linuxkms/lib.rs +++ b/internal/backends/linuxkms/lib.rs @@ -38,6 +38,7 @@ mod renderer { pub fn try_skia_then_femtovg_then_software( _device_opener: &crate::DeviceOpener, ) -> Result, PlatformError> { + #[allow(unused)] type FactoryFn = fn(&crate::DeviceOpener) -> Result, PlatformError>;