mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 22:48:48 +00:00
Skip function with no exprs contained
This commit is contained in:
parent
c5447eb3c1
commit
c7692cf749
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue