1
Fork 0

Fix some clippy warnings in libsyntax

This is mostly removing stray ampersands, needless returns and lifetimes.
This commit is contained in:
Andre Bogus 2017-05-12 20:05:39 +02:00
parent e19ccb71c8
commit a9c163ebe9
32 changed files with 498 additions and 537 deletions

View file

@ -330,7 +330,7 @@ impl DiagnosticSpanLine {
})
.collect()
})
.unwrap_or(vec![])
.unwrap_or_else(|_| vec![])
}
}