diff options
| author | bors <bors@rust-lang.org> | 2022-05-05 13:12:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-05 13:12:09 +0000 |
| commit | 7c21f91b15b7604f818565646b686d90f99d1baf (patch) | |
| tree | f99733e7e345d24567effd0df3f50a75051bf64c /clippy_lints/src/cognitive_complexity.rs | |
| parent | c7a705a842fc30c4725b003c1b8b3443f2d0c07d (diff) | |
| parent | 006282964f1e741a58c72d8e12f872bf5c227af9 (diff) | |
| download | rust-7c21f91b15b7604f818565646b686d90f99d1baf.tar.gz rust-7c21f91b15b7604f818565646b686d90f99d1baf.zip | |
Auto merge of #8788 - flip1995:rustup, r=xFrednet,flip1995
Rustup r? `@ghost` changelog: move trait_duplication_in_bounds and type_repetition_in_bounds to nursery temporarily. This could already be reverted before the release. Check the Clippy in the Rust repo beta branch when writing this changelog.
Diffstat (limited to 'clippy_lints/src/cognitive_complexity.rs')
| -rw-r--r-- | clippy_lints/src/cognitive_complexity.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/cognitive_complexity.rs b/clippy_lints/src/cognitive_complexity.rs index 85f95237549..2bf7f868905 100644 --- a/clippy_lints/src/cognitive_complexity.rs +++ b/clippy_lints/src/cognitive_complexity.rs @@ -82,7 +82,7 @@ impl CognitiveComplexity { if rust_cc > self.limit.limit() { let fn_span = match kind { - FnKind::ItemFn(ident, _, _, _) | FnKind::Method(ident, _, _) => ident.span, + FnKind::ItemFn(ident, _, _) | FnKind::Method(ident, _) => ident.span, FnKind::Closure => { let header_span = body_span.with_hi(decl.output.span().lo()); let pos = snippet_opt(cx, header_span).and_then(|snip| { |
