Skip to content

Commit 42e4595

Browse files
Indicate anonymous lifetimes for types
1 parent a8413a3 commit 42e4595

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
88

9-
[There are 342 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
9+
[There are 343 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
1010

1111
We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you:
1212

clippy_lints/src/mem_replace.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ declare_clippy_lint! {
9696
declare_lint_pass!(MemReplace =>
9797
[MEM_REPLACE_OPTION_WITH_NONE, MEM_REPLACE_WITH_UNINIT, MEM_REPLACE_WITH_DEFAULT]);
9898

99-
fn check_replace_option_with_none(cx: &LateContext<'_, '_>, src: &Expr, dest: &Expr, expr_span: Span) {
99+
fn check_replace_option_with_none(cx: &LateContext<'_, '_>, src: &Expr<'_>, dest: &Expr<'_>, expr_span: Span) {
100100
if let ExprKind::Path(ref replacement_qpath) = src.kind {
101101
// Check that second argument is `Option::None`
102102
if match_qpath(replacement_qpath, &paths::OPTION_NONE) {
@@ -134,7 +134,7 @@ fn check_replace_option_with_none(cx: &LateContext<'_, '_>, src: &Expr, dest: &E
134134
}
135135
}
136136

137-
fn check_replace_with_uninit(cx: &LateContext<'_, '_>, src: &Expr, expr_span: Span) {
137+
fn check_replace_with_uninit(cx: &LateContext<'_, '_>, src: &Expr<'_>, expr_span: Span) {
138138
if let ExprKind::Call(ref repl_func, ref repl_args) = src.kind {
139139
if_chain! {
140140
if repl_args.is_empty();
@@ -164,7 +164,7 @@ fn check_replace_with_uninit(cx: &LateContext<'_, '_>, src: &Expr, expr_span: Sp
164164
}
165165
}
166166

167-
fn check_replace_with_default(cx: &LateContext<'_, '_>, src: &Expr, dest: &Expr, expr_span: Span) {
167+
fn check_replace_with_default(cx: &LateContext<'_, '_>, src: &Expr<'_>, dest: &Expr<'_>, expr_span: Span) {
168168
if let ExprKind::Call(ref repl_func, _) = src.kind {
169169
if_chain! {
170170
if !in_external_macro(cx.tcx.sess, expr_span);

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub use lint::Lint;
66
pub use lint::LINT_LEVELS;
77

88
// begin lint list, do not remove this comment, it’s used in `update_lints`
9-
pub const ALL_LINTS: [Lint; 342] = [
9+
pub const ALL_LINTS: [Lint; 343] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",

0 commit comments

Comments
 (0)