mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-01 20:07:38 +03:00
warning: the following explicit lifetimes could be elided: 'a --> src/var.rs:5:6 | 5 | impl<'a, T: Pointer + ?Sized> Pointer for Var<'a, T> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names = note: `-W clippy::elidable-lifetime-names` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::elidable_lifetime_names)]` help: elide the lifetimes | 5 - impl<'a, T: Pointer + ?Sized> Pointer for Var<'a, T> { 5 + impl<T: Pointer + ?Sized> Pointer for Var<'_, T> { | warning: the following explicit lifetimes could be elided: 'a --> tests/test_lints.rs:40:22 | 40 | pub enum MyError<'a> { | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names = note: `-W clippy::elidable-lifetime-names` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::elidable_lifetime_names)]` help: elide the lifetimes | 40 - pub enum MyError<'a> { 40 + pub enum MyError'_> { | warning: the following explicit lifetimes could be elided: 'a --> tests/test_display.rs:157:14 | 157 | impl<'a> Display for Msg<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names = note: `-W clippy::elidable-lifetime-names` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::elidable_lifetime_names)]` help: elide the lifetimes | 157 - impl<'a> Display for Msg<'a> { 157 + impl Display for Msg<'_> { | |
||
---|---|---|
.. | ||
no-std | ||
ui | ||
compiletest.rs | ||
test_backtrace.rs | ||
test_display.rs | ||
test_error.rs | ||
test_expr.rs | ||
test_from.rs | ||
test_generics.rs | ||
test_lints.rs | ||
test_option.rs | ||
test_path.rs | ||
test_source.rs | ||
test_transparent.rs |