Skip to content

Commit 4a4c955

Browse files
committed
Fix pass value instead of reference
1 parent 3d3d2be commit 4a4c955

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
@@ -5743,7 +5743,7 @@ impl Methods {
57435743
);
57445744
},
57455745
(name, [arg]) if matches!(name.as_str(), "chunks_exact" | "chunks_exact_mut") => {
5746-
chunks_exact_to_as_chunks::check(cx, expr, recv, arg, name.as_str(), &self.msrv);
5746+
chunks_exact_to_as_chunks::check(cx, expr, recv, arg, name.as_str(), self.msrv);
57475747
},
57485748
_ => {},
57495749
}

0 commit comments

Comments
 (0)