diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-09-30 19:38:50 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-10-01 23:17:19 +0200 |
| commit | 759eba0a08ef80f958e671e822ad02e2b5409946 (patch) | |
| tree | 9f5193b2b18a57a327164a4cc197711dd1a72678 /compiler/rustc_interface/src/callbacks.rs | |
| parent | b6057bf7b7ee7c58e6a39ead02eaa13b75f908c2 (diff) | |
| download | rust-759eba0a08ef80f958e671e822ad02e2b5409946.tar.gz rust-759eba0a08ef80f958e671e822ad02e2b5409946.zip | |
Fix clippy lints
Diffstat (limited to 'compiler/rustc_interface/src/callbacks.rs')
| -rw-r--r-- | compiler/rustc_interface/src/callbacks.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/callbacks.rs b/compiler/rustc_interface/src/callbacks.rs index 95bd2993456..3c7908fae79 100644 --- a/compiler/rustc_interface/src/callbacks.rs +++ b/compiler/rustc_interface/src/callbacks.rs @@ -41,7 +41,7 @@ fn track_span_parent(def_id: rustc_span::def_id::LocalDefId) { fn track_diagnostic(diagnostic: &Diagnostic) { tls::with_context_opt(|icx| { if let Some(icx) = icx { - if let Some(ref diagnostics) = icx.diagnostics { + if let Some(diagnostics) = icx.diagnostics { let mut diagnostics = diagnostics.lock(); diagnostics.extend(Some(diagnostic.clone())); } |
