Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/profile/src/hprof.rs')
-rw-r--r--crates/profile/src/hprof.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/profile/src/hprof.rs b/crates/profile/src/hprof.rs
index b562c193e7..deea0b0dd8 100644
--- a/crates/profile/src/hprof.rs
+++ b/crates/profile/src/hprof.rs
@@ -133,7 +133,7 @@ static FILTER: Lazy<RwLock<Filter>> = Lazy::new(Default::default);
fn with_profile_stack<T>(f: impl FnOnce(&mut ProfileStack) -> T) -> T {
thread_local!(static STACK: RefCell<ProfileStack> = RefCell::new(ProfileStack::new()));
- STACK.with(|it| f(&mut *it.borrow_mut()))
+ STACK.with(|it| f(&mut it.borrow_mut()))
}
#[derive(Default, Clone, Debug)]