mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-14 13:06:49 +00:00
Skip function with no exprs contained
This commit is contained in:
parent
c5447eb3c1
commit
c7692cf749
@ -98,7 +98,7 @@ impl<'tcx> LateLintPass<'tcx> for UnnecessaryWrap {
|
||||
}
|
||||
});
|
||||
|
||||
if can_sugg {
|
||||
if can_sugg && !suggs.is_empty() {
|
||||
span_lint_and_then(
|
||||
cx,
|
||||
UNNECESSARY_WRAP,
|
||||
|
Loading…
Reference in New Issue
Block a user