Skip to content

Commit c85e57e

Browse files
Fix building with DHAT
Maybe we need to check it on CI?
1 parent 2e2e3eb commit c85e57e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)