From fccd8d9cf38ed28db80bd0dc3353a9474fac7d09 Mon Sep 17 00:00:00 2001 From: Declan Tsien Date: Sun, 5 May 2024 22:31:34 +0800 Subject: [PATCH] clippy --- Cargo.lock | 10 ---------- .../src/gfx/context_impl/surfman/rendering_context.rs | 1 + crates/emacs-sys/src/vector.rs | 2 +- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 939583227b2..b24075110cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3586,15 +3586,6 @@ dependencies = [ "lock_api", ] -[[package]] -name = "spin_sleep" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368a978649eaf70006b082e79c832bd72556ac1393eaf564d686e919dca2347f" -dependencies = [ - "windows-sys 0.52.0", -] - [[package]] name = "static_assertions" version = "1.1.0" @@ -4891,7 +4882,6 @@ dependencies = [ "log", "nix", "raw-window-handle", - "spin_sleep", "webrender 0.1.0", "webrender_api", "winit 0.29.15", diff --git a/crates/emacs-sys/src/gfx/context_impl/surfman/rendering_context.rs b/crates/emacs-sys/src/gfx/context_impl/surfman/rendering_context.rs index 74f3a53e9b0..6863475c1d8 100644 --- a/crates/emacs-sys/src/gfx/context_impl/surfman/rendering_context.rs +++ b/crates/emacs-sys/src/gfx/context_impl/surfman/rendering_context.rs @@ -54,6 +54,7 @@ impl Drop for RenderingContextData { } } +#[allow(dead_code)] impl RenderingContext { pub fn create( connection: &Connection, diff --git a/crates/emacs-sys/src/vector.rs b/crates/emacs-sys/src/vector.rs index b7ff8b4d6e0..75d97114af6 100644 --- a/crates/emacs-sys/src/vector.rs +++ b/crates/emacs-sys/src/vector.rs @@ -239,7 +239,7 @@ impl_vectorlike_ref! { LispVectorRef, LispVecIterator, ptrdiff_t::max_value() } pub static HEADER_SIZE: LazyLock = LazyLock::new(|| memoffset::offset_of!(crate::bindings::Lisp_Vector, contents)); pub static WORD_SIZE: LazyLock = - LazyLock::new(|| ::std::mem::size_of::()); + LazyLock::new(::std::mem::size_of::); pub trait LVector { fn vectorp(self) -> bool;