Skip to content

Commit 0d37b42

Browse files
committed
Ignore needless_lifetimes clippy lint
warning: the following explicit lifetimes could be elided: 'a --> src/unindent.rs:83:6 | 83 | impl<'a, T: ?Sized + Unindent> Unindent for &'a T { | ^^ ^^ | = 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 | 83 - impl<'a, T: ?Sized + Unindent> Unindent for &'a T { 83 + impl<T: ?Sized + Unindent> Unindent for &T { |
1 parent 78289e3 commit 0d37b42

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
clippy::from_iter_instead_of_collect,
128128
clippy::module_name_repetitions,
129129
clippy::needless_doctest_main,
130+
clippy::needless_lifetimes,
130131
clippy::needless_pass_by_value,
131132
clippy::trivially_copy_pass_by_ref,
132133
clippy::type_complexity

unindent/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
clippy::module_name_repetitions,
5252
clippy::must_use_candidate,
5353
clippy::needless_doctest_main,
54+
clippy::needless_lifetimes,
5455
clippy::trivially_copy_pass_by_ref,
5556
clippy::type_complexity
5657
)]

0 commit comments

Comments
 (0)