Skip to content

Commit

Permalink
Ignore needless_lifetimes clippy lint
Browse files Browse the repository at this point in the history
    warning: the following explicit lifetimes could be elided: 'a
      --> src/execution.rs:20:6
       |
    20 | impl<'a> Execution<'a> {
       |      ^^            ^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
       = note: `-W clippy::needless-lifetimes` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::needless_lifetimes)]`
    help: elide the lifetimes
       |
    20 - impl<'a> Execution<'a> {
    20 + impl Execution<'_> {
       |

    warning: the following explicit lifetimes could be elided: 'a
      --> src/wip.rs:48:6
       |
    48 | impl<'a> MakeImpl<'a> {
       |      ^^           ^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
       |
    48 - impl<'a> MakeImpl<'a> {
    48 + impl MakeImpl<'_> {
       |
  • Loading branch information
dtolnay committed Oct 6, 2024
1 parent 5f11510 commit afaf8e5
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 @@ -314,6 +314,7 @@
clippy::missing_panics_doc,
clippy::module_name_repetitions,
clippy::must_use_candidate,
clippy::needless_lifetimes,
clippy::needless_pass_by_value,
clippy::new_without_default,
clippy::return_self_not_must_use,
Expand Down

0 comments on commit afaf8e5

Please sign in to comment.