Skip to content

Commit ec0055b

Browse files
committed
Undo changes
1 parent 161f390 commit ec0055b

File tree

1 file changed

+1
-3
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-3
lines changed

clippy_lints/src/methods/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2269,9 +2269,7 @@ fn check_methods<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, msrv: Optio
22692269
("as_mut", []) => useless_asref::check(cx, expr, "as_mut", recv),
22702270
("as_ref", []) => useless_asref::check(cx, expr, "as_ref", recv),
22712271
("assume_init", []) => uninit_assumed_init::check(cx, expr, recv),
2272-
("cloned", []) => {
2273-
cloned_instead_of_copied::check(cx, expr, recv, span, msrv);
2274-
},
2272+
("cloned", []) => cloned_instead_of_copied::check(cx, expr, recv, span, msrv),
22752273
("collect", []) => match method_call!(recv) {
22762274
Some((name @ ("cloned" | "copied"), [recv2], _)) => {
22772275
iter_cloned_collect::check(cx, name, expr, recv2);

0 commit comments

Comments
 (0)