diff options
| author | Nadir Fejzic <nadirfejzo@gmail.com> | 2022-11-14 22:25:56 +0100 |
|---|---|---|
| committer | Nadir Fejzic <nadirfejzo@gmail.com> | 2022-11-14 22:25:56 +0100 |
| commit | 72ab91d8066ee399cff3e3c8293bf4dbccfb6358 (patch) | |
| tree | 067a673903c67b06f4f451be2898353a7b93c584 | |
| parent | 912dc919af03427288b64921bb4aea0010d071bf (diff) | |
| download | rust-72ab91d8066ee399cff3e3c8293bf4dbccfb6358.tar.gz rust-72ab91d8066ee399cff3e3c8293bf4dbccfb6358.zip | |
fix: add extract_msrv_attr call to instan_subtraction lint pass
| -rw-r--r-- | clippy_lints/src/instant_subtraction.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clippy_lints/src/instant_subtraction.rs b/clippy_lints/src/instant_subtraction.rs index 3f72222f31b..716c11becd9 100644 --- a/clippy_lints/src/instant_subtraction.rs +++ b/clippy_lints/src/instant_subtraction.rs @@ -112,6 +112,8 @@ impl LateLintPass<'_> for InstantSubtraction { } } } + + extract_msrv_attr!(LateContext); } fn is_instant_now_call(cx: &LateContext<'_>, expr_block: &'_ Expr<'_>) -> bool { |
