Skip to content

Commit 2a33d25

Browse files
author
Chris Novick
committed
Fix mismatched return types in `current_stack_ptr()`
1 parent 94ec48c commit 2a33d25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ psm_stack_information! (
8484
}
8585
no {
8686
#[inline(always)]
87-
fn current_stack_ptr() -> Option<usize> {
87+
fn current_stack_ptr() -> usize {
8888
unsafe {
8989
let mut x = std::mem::MaybeUninit::uninit();
9090
// Unlikely to be ever exercised. As a fallback we execute a volatile read to a
@@ -110,6 +110,7 @@ fn get_stack_limit() -> Option<usize> {
110110
}
111111

112112
#[inline(always)]
113+
#[allow(unused)]
113114
fn set_stack_limit(l: Option<usize>) {
114115
STACK_LIMIT.with(|s| s.set(l))
115116
}

0 commit comments

Comments
 (0)