Rollup merge of #41957 - llogiq:clippy-libsyntax, r=petrochenkov

Fix some clippy warnings in libsyntax

This is mostly removing stray ampersands, needless returns and lifetimes. Basically a lot of small changes.
This commit is contained in:
Mark Simulacrum 2017-05-16 17:31:50 -06:00 committed by GitHub
commit 4066c8ec71
32 changed files with 504 additions and 538 deletions

View file

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