diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-02-28 23:20:48 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2025-02-28 23:27:09 +0100 |
| commit | fe01c4499507fc6ba21e07ff9824c14443b308e9 (patch) | |
| tree | 48eb83134a7122ddbecda437dfb8b558baf5cb8f /clippy_lints/src/tuple_array_conversions.rs | |
| parent | 222aaba5a18a27f747573aa73d07d7fedfff0231 (diff) | |
Merge commit '9f9a822509e5ad3e560cbbe830d1013f936fca28' into clippy-subtree-update
Diffstat (limited to 'clippy_lints/src/tuple_array_conversions.rs')
| -rw-r--r-- | clippy_lints/src/tuple_array_conversions.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clippy_lints/src/tuple_array_conversions.rs b/clippy_lints/src/tuple_array_conversions.rs index c7aefc65f70..95ce19975c7 100644 --- a/clippy_lints/src/tuple_array_conversions.rs +++ b/clippy_lints/src/tuple_array_conversions.rs @@ -47,15 +47,13 @@ pub struct TupleArrayConversions { } impl TupleArrayConversions { pub fn new(conf: &'static Conf) -> Self { - Self { - msrv: conf.msrv.clone(), - } + Self { msrv: conf.msrv } } } impl LateLintPass<'_> for TupleArrayConversions { fn check_expr<'tcx>(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) { - if expr.span.in_external_macro(cx.sess().source_map()) || !self.msrv.meets(msrvs::TUPLE_ARRAY_CONVERSIONS) { + if expr.span.in_external_macro(cx.sess().source_map()) || !self.msrv.meets(cx, msrvs::TUPLE_ARRAY_CONVERSIONS) { return; } @@ -65,8 +63,6 @@ impl LateLintPass<'_> for TupleArrayConversions { _ => {}, } } - - extract_msrv_attr!(LateContext); } fn check_array<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, elements: &'tcx [Expr<'tcx>]) { |
