Skip to content

Commit

Permalink
Resolve extra_unused_lifetimes clippy lint
Browse files Browse the repository at this point in the history
    warning: this lifetime isn't used in the impl
      --> src/aserror.rs:46:6
       |
    46 | impl<'a, T: Error + 'a> Sealed for T {}
       |      ^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
       = note: `-W clippy::extra-unused-lifetimes` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::extra_unused_lifetimes)]`
  • Loading branch information
dtolnay committed Oct 6, 2024
1 parent 1b15d6e commit a72ea77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aserror.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl<'a> AsDynError<'a> for dyn Error + Send + Sync + UnwindSafe + 'a {

#[doc(hidden)]
pub trait Sealed {}
impl<'a, T: Error + 'a> Sealed for T {}
impl<T: Error> Sealed for T {}
impl<'a> Sealed for dyn Error + 'a {}
impl<'a> Sealed for dyn Error + Send + 'a {}
impl<'a> Sealed for dyn Error + Send + Sync + 'a {}
Expand Down

0 comments on commit a72ea77

Please sign in to comment.