suppress needless_lifetimes lints from clippy 0.1.83

This commit is contained in:
Matthew Donoughe 2024-12-03 08:40:10 -05:00
parent ad2f20b9f7
commit aa19b7cfce
No known key found for this signature in database
2 changed files with 17 additions and 2 deletions

View file

@ -18,3 +18,18 @@ fn test_unused_qualifications() {
let _: MyError;
}
#[test]
fn test_needless_lifetimes() {
#![allow(dead_code)]
#![deny(clippy::needless_lifetimes)]
#[derive(Debug, Error)]
#[error("...")]
pub enum MyError<'a> {
A(#[from] std::io::Error),
B(&'a ()),
}
let _: MyError;
}