Skip to content

Commit 39cc97c

Browse files
Merge pull request #20956 from ChayimFriedman2/fix-dhat
minor: Fix building with DHAT
2 parents 7a33724 + 599c379 commit 39cc97c

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src/handlers

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pub(crate) fn handle_memory_usage(_state: &mut GlobalState, _: ()) -> anyhow::Re
140140
#[cfg(feature = "dhat")]
141141
{
142142
if let Some(dhat_output_file) = _state.config.dhat_output_file() {
143-
let mutprofiler = crate::DHAT_PROFILER.lock().unwrap();
143+
let mut profiler = crate::DHAT_PROFILER.lock().unwrap();
144144
let old_profiler = profiler.take();
145145
// Need to drop the old profiler before creating a new one.
146146
drop(old_profiler);

0 commit comments

Comments
 (0)