diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-05-26 22:07:53 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-05-26 22:07:53 -0500 |
| commit | f3e77a454aef617998a016ca70c8dc0d281f208a (patch) | |
| tree | 1a4d40fe7765b091206735f2c69125f76a4156a1 /clippy_utils/src | |
| parent | 6d50cff45afeeca85a14f1284badf9fc4b5b7668 (diff) | |
| download | rust-f3e77a454aef617998a016ca70c8dc0d281f208a.tar.gz rust-f3e77a454aef617998a016ca70c8dc0d281f208a.zip | |
Fix allow on some statement lints
Diffstat (limited to 'clippy_utils/src')
| -rw-r--r-- | clippy_utils/src/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/diagnostics.rs b/clippy_utils/src/diagnostics.rs index a1f5f5f3338..7c94474cb35 100644 --- a/clippy_utils/src/diagnostics.rs +++ b/clippy_utils/src/diagnostics.rs @@ -167,7 +167,7 @@ pub fn span_lint_hir_and_then( cx: &LateContext<'_>, lint: &'static Lint, hir_id: HirId, - sp: Span, + sp: impl Into<MultiSpan>, msg: &str, f: impl FnOnce(&mut DiagnosticBuilder<'_>), ) { |
