From 599c3799471e68f2ddf2cb5dd55caa4fb0c2095e Mon Sep 17 00:00:00 2001 From: Chayim Refael Friedman Date: Sat, 1 Nov 2025 18:50:01 +0200 Subject: [PATCH] Fix building with DHAT Maybe we need to check it on CI? --- .../rust-analyzer/crates/rust-analyzer/src/handlers/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs index ad06a1d6c01f..dfe98878613e 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs +++ b/src/tools/rust-analyzer/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);