Skip to content

Commit

Permalink
Suppress wrong_self_convention clippy false positive
Browse files Browse the repository at this point in the history
rust-lang/rust-clippy#6983

    error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
       --> src/token.rs:563:18
        |
    563 |     fn to_tokens(&self, tokens: &mut TokenStream) {
        |                  ^^^^^
        |
        = note: `-D clippy::wrong-self-convention` implied by `-D clippy::all`
        = help: consider choosing a less ambiguous name
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
  • Loading branch information
dtolnay committed Mar 27, 2021
1 parent 17332d9 commit fb4f26a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@
clippy::never_loop,
clippy::too_many_arguments,
clippy::trivially_copy_pass_by_ref,
clippy::unnecessary_unwrap
clippy::unnecessary_unwrap,
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983
clippy::wrong_self_convention
)]
// Ignored clippy_pedantic lints.
#![allow(
Expand Down

0 comments on commit fb4f26a

Please sign in to comment.