Skip to content
Myr

Resolve used_underscore_items pedantic clippy lint

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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)]`

authored by David Tolnay · committed by David Tolnay · parent 9d3fb6d · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/backtrace.rs+2 added-2 removed
404 unmodified lines
405 }406}407408fn _assert_send_sync() {409 fn _assert<T: Send + Sync>() {}410 _assert::<Backtrace>();409 fn assert<T: Send + Sync>() {}410 assert::<Backtrace>();411}