From 8936fe1acda1c4918ce57a23cbc12715a1bf05fa Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 8 Feb 2024 13:28:26 +0400 Subject: [PATCH] Fix nightly CI dead_code warnings --- Cargo.toml | 2 +- src/platform_impl/linux/x11/util/geometry.rs | 8 -------- src/platform_impl/macos/util.rs | 4 ---- src/platform_impl/windows/mod.rs | 6 ------ 4 files changed, 1 insertion(+), 19 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 139c39bb..9be00768 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -174,7 +174,7 @@ features = [ ] [target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies] -ahash = { version = "0.8.3", features = ["no-rng"], optional = true } +ahash = { version = "0.8.7", features = ["no-rng"], optional = true } bytemuck = { version = "1.13.1", default-features = false, optional = true } calloop = "0.12.3" libc = "0.2.64" diff --git a/src/platform_impl/linux/x11/util/geometry.rs b/src/platform_impl/linux/x11/util/geometry.rs index ada56c1a..0a95c418 100644 --- a/src/platform_impl/linux/x11/util/geometry.rs +++ b/src/platform_impl/linux/x11/util/geometry.rs @@ -83,14 +83,6 @@ impl FrameExtents { } } -#[derive(Debug, Clone)] -pub struct LogicalFrameExtents { - pub left: f64, - pub right: f64, - pub top: f64, - pub bottom: f64, -} - #[derive(Debug, Clone, PartialEq, Eq)] pub enum FrameExtentsHeuristicPath { Supported, diff --git a/src/platform_impl/macos/util.rs b/src/platform_impl/macos/util.rs index 5ad15549..4aa27847 100644 --- a/src/platform_impl/macos/util.rs +++ b/src/platform_impl/macos/util.rs @@ -1,10 +1,6 @@ use icrate::Foundation::{NSNotFound, NSRange, NSUInteger}; use log::trace; -// Replace with `!` once stable -#[derive(Debug)] -pub enum Never {} - pub const EMPTY_RANGE: NSRange = NSRange { location: NSNotFound as NSUInteger, length: 0, diff --git a/src/platform_impl/windows/mod.rs b/src/platform_impl/windows/mod.rs index 8f1f3351..706d67dc 100644 --- a/src/platform_impl/windows/mod.rs +++ b/src/platform_impl/windows/mod.rs @@ -69,12 +69,6 @@ impl Default for PlatformSpecificWindowBuilderAttributes { unsafe impl Send for PlatformSpecificWindowBuilderAttributes {} unsafe impl Sync for PlatformSpecificWindowBuilderAttributes {} -// Cursor name in UTF-16. Used to set cursor in `WM_SETCURSOR`. -#[derive(Debug, Clone, Copy)] -pub struct Cursor(pub *const u16); -unsafe impl Send for Cursor {} -unsafe impl Sync for Cursor {} - #[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DeviceId(u32);