Both #3427 and #4386 implement a Visitor that walks an expression and searches for a return. This should be de-duplicated.
Maybe there are other Visitors in the Clippy code base, that also do similar things and can be extracted to utils.
Originally posted by @mikerite in #4386 (comment)
Both #3427 and #4386 implement a
Visitorthat walks an expression and searches for areturn. This should be de-duplicated.Maybe there are other
Visitors in the Clippy code base, that also do similar things and can be extracted toutils.Originally posted by @mikerite in #4386 (comment)