From 07661d36dce791d230996811aba27168308e01e4 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 20 Jan 2025 01:41:34 +0900 Subject: [PATCH] Ignore dead_code lint on AssertSync trait ``` error: trait `AssertSync` is never used --> src/lib.rs:226:15 | 226 | trait AssertSync: Sync {} | ^^^^^^^^^^ | = note: `-D dead-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(dead_code)]` ``` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 574cf1f..bb7610f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -223,6 +223,7 @@ impl AtomicWaker { /// Create an `AtomicWaker`. pub const fn new() -> Self { // Make sure that task is Sync + #[allow(dead_code)] trait AssertSync: Sync {} impl AssertSync for Waker {}