From ee39c47896cded1ebf86857cdc31bf6c98a445a7 Mon Sep 17 00:00:00 2001 From: ComplexSpaces Date: Sat, 24 Aug 2024 16:28:08 -0500 Subject: [PATCH] Fix new lints for CI --- src/common.rs | 2 +- src/platform/linux/x11.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common.rs b/src/common.rs index 221a883..adda67c 100644 --- a/src/common.rs +++ b/src/common.rs @@ -176,7 +176,7 @@ impl Drop for ScopeGuard { pub(crate) mod private { // This is currently unused on macOS, so silence the warning which appears // since there's no extension traits making use of this trait sealing structure. - #[cfg_attr(target_vendor = "apple", allow(unreachable_pub))] + #[cfg_attr(target_vendor = "apple", allow(unreachable_pub, dead_code))] pub trait Sealed {} impl Sealed for crate::Get<'_> {} diff --git a/src/platform/linux/x11.rs b/src/platform/linux/x11.rs index 0dd7c50..406b43f 100644 --- a/src/platform/linux/x11.rs +++ b/src/platform/linux/x11.rs @@ -23,7 +23,6 @@ use std::{ thread::JoinHandle, thread_local, time::{Duration, Instant}, - usize, }; use log::{error, trace, warn};