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
       --> tests/test_display.rs:152:14
        |
    152 |         impl<'a> Display for Msg<'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
        |
    152 -         impl<'a> Display for Msg<'a> {
    152 +         impl Display for Msg<'_> {
        |
  • Loading branch information
dtolnay committed Oct 6, 2024
1 parent 84484bc commit 1b15d6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_display.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#![allow(clippy::needless_raw_string_hashes, clippy::uninlined_format_args)]
#![allow(
clippy::needless_lifetimes,
clippy::needless_raw_string_hashes,
clippy::uninlined_format_args
)]

use core::fmt::{self, Display};
use thiserror::Error;
Expand Down

0 comments on commit 1b15d6e

Please sign in to comment.