diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-22 12:43:19 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-22 12:43:19 +0100 |
| commit | 263cbd1bbe2d89880c04b69a003f98ca12ba4970 (patch) | |
| tree | df9f187c92391eff28bfddf8b70bfe0e76b854cd /src/librustc_errors | |
| parent | 5574b1df577f737373b42cbf364b6cab2dfa5960 (diff) | |
| download | rust-263cbd1bbe2d89880c04b69a003f98ca12ba4970.tar.gz rust-263cbd1bbe2d89880c04b69a003f98ca12ba4970.zip | |
remove redundant closures (clippy::redundant_closure)
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/diagnostic_builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_errors/diagnostic_builder.rs b/src/librustc_errors/diagnostic_builder.rs index 008d2e92418..fffae0bfd24 100644 --- a/src/librustc_errors/diagnostic_builder.rs +++ b/src/librustc_errors/diagnostic_builder.rs @@ -162,7 +162,7 @@ impl<'a> DiagnosticBuilder<'a> { message: &str, span: Option<S>, ) -> &mut Self { - let span = span.map(|s| s.into()).unwrap_or_else(|| MultiSpan::new()); + let span = span.map(|s| s.into()).unwrap_or_else(MultiSpan::new); self.0.diagnostic.sub(level, message, span, None); self } |
