Skip to content

Commit 3f251a2

Browse files
committed
Remove dangling r_safely
1 parent b0639c8 commit 3f251a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/harp/src/session.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub fn r_stack_info() -> anyhow::Result<Vec<FrameInfo>> {
101101

102102
// FIXME: It's better not to use `r_try_catch()` here because it adds
103103
// frames to the stack. Should wrap in a top-level-exec instead.
104-
let _ = r_safely!({
104+
let _ = unsafe {
105105
(|| -> anyhow::Result<()> {
106106
let info = r_try_eval_silent(STACK_INFO_CALL.unwrap(), R_GlobalEnv)?;
107107
Rf_protect(info);
@@ -119,7 +119,7 @@ pub fn r_stack_info() -> anyhow::Result<Vec<FrameInfo>> {
119119
Rf_unprotect(1);
120120
Ok(())
121121
})()
122-
})?;
122+
}?;
123123

124124
// Add information from top-level frame and shift the source
125125
// information one frame up so it represents the frame's execution

0 commit comments

Comments
 (0)