Skip to content

Commit

Permalink
Resolve used_underscore_items pedantic clippy lint
Browse files Browse the repository at this point in the history
    warning: used underscore-prefixed item
       --> src/backtrace.rs:410:5
        |
    410 |     _assert::<Backtrace>();
        |     ^^^^^^^^^^^^^^^^^^^^^^
        |
    note: item is defined here
       --> src/backtrace.rs:409:5
        |
    409 |     fn _assert<T: Send + Sync>() {}
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
        = note: `-W clippy::used-underscore-items` implied by `-W clippy::pedantic`
        = help: to override `-W clippy::pedantic` add `#[allow(clippy::used_underscore_items)]`
  • Loading branch information
dtolnay committed Sep 27, 2024
1 parent 9d3fb6d commit be64707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,6 @@ mod capture {
}

fn _assert_send_sync() {
fn _assert<T: Send + Sync>() {}
_assert::<Backtrace>();
fn assert<T: Send + Sync>() {}
assert::<Backtrace>();
}

0 comments on commit be64707

Please sign in to comment.