Skip to content

Commit 66283bf

Browse files
committed
apply [needless_return] suggestion
1 parent af35dcd commit 66283bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/useless_conversion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ impl<'tcx> LateLintPass<'tcx> for UselessConversion {
217217
},
218218
ExprKind::MethodCall(.., args, _) => {
219219
cx.typeck_results().type_dependent_def_id(parent.hir_id).map(|did| {
220-
return (
220+
(
221221
did,
222222
args,
223223
cx.typeck_results().node_args(parent.hir_id),
224224
MethodOrFunction::Method,
225-
);
225+
)
226226
})
227227
},
228228
_ => None,

0 commit comments

Comments
 (0)