Skip to content

Commit 113368e

Browse files
committed
Fix pass value instead of reference
1 parent 210a439 commit 113368e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/methods/chunks_exact_to_as_chunks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub(super) fn check(
1212
recv: &Expr<'_>,
1313
arg: &Expr<'_>,
1414
method_name: &str,
15-
msrv: &Msrv,
15+
msrv: Msrv,
1616
) {
1717
// Check for Rust version
1818
if !msrv.meets(cx, msrvs::AS_CHUNKS) {

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5753,7 +5753,7 @@ impl Methods {
57535753
);
57545754
},
57555755
(name, [arg]) if matches!(name.as_str(), "chunks_exact" | "chunks_exact_mut") => {
5756-
chunks_exact_to_as_chunks::check(cx, expr, recv, arg, name.as_str(), &self.msrv);
5756+
chunks_exact_to_as_chunks::check(cx, expr, recv, arg, name.as_str(), self.msrv);
57575757
},
57585758
_ => {},
57595759
}

0 commit comments

Comments
 (0)