Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #20956 from ChayimFriedman2/fix-dhat
minor: Fix building with DHAT
| -rw-r--r-- | crates/rust-analyzer/src/handlers/request.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/handlers/request.rs b/crates/rust-analyzer/src/handlers/request.rs index ad06a1d6c0..dfe9887861 100644 --- a/crates/rust-analyzer/src/handlers/request.rs +++ b/crates/rust-analyzer/src/handlers/request.rs @@ -140,7 +140,7 @@ pub(crate) fn handle_memory_usage(_state: &mut GlobalState, _: ()) -> anyhow::Re #[cfg(feature = "dhat")] { if let Some(dhat_output_file) = _state.config.dhat_output_file() { - let mutprofiler = crate::DHAT_PROFILER.lock().unwrap(); + let mut profiler = crate::DHAT_PROFILER.lock().unwrap(); let old_profiler = profiler.take(); // Need to drop the old profiler before creating a new one. drop(old_profiler); |