Skip to content

Commit

Permalink
apply [needless_return] suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
apoisternex committed Aug 4, 2024
1 parent af35dcd commit 66283bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/useless_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ impl<'tcx> LateLintPass<'tcx> for UselessConversion {
},
ExprKind::MethodCall(.., args, _) => {
cx.typeck_results().type_dependent_def_id(parent.hir_id).map(|did| {
return (
(
did,
args,
cx.typeck_results().node_args(parent.hir_id),
MethodOrFunction::Method,
);
)
})
},
_ => None,
Expand Down

0 comments on commit 66283bf

Please sign in to comment.