Skip to content

Commit

Permalink
Ignore dead_code lint on AssertSync trait
Browse files Browse the repository at this point in the history
```
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)]`
```
  • Loading branch information
taiki-e committed Jan 19, 2025
1 parent 0784d56 commit 07661d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down

0 comments on commit 07661d3

Please sign in to comment.