Skip to content

Commit

Permalink
linuxkms: ignore warning when no renderer are active
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Jun 20, 2024
1 parent a4c0cc9 commit 845f40d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/backends/linuxkms/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions internal/backends/linuxkms/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ mod renderer {
pub fn try_skia_then_femtovg_then_software(
_device_opener: &crate::DeviceOpener,
) -> Result<Box<dyn FullscreenRenderer>, PlatformError> {
#[allow(unused)]
type FactoryFn =
fn(&crate::DeviceOpener) -> Result<Box<(dyn FullscreenRenderer)>, PlatformError>;

Expand Down

0 comments on commit 845f40d

Please sign in to comment.