Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Oct 30, 2024
1 parent aded19b commit c6a0153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stacked_exceptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ unsafe fn get_stack() -> &'static Stack<Header> {
#[cfg(not(feature = "std"))]
// SAFETY: We require the caller to not use the reference anywhere near the end of the thread,
// so if `&STACK` is sound in the first place, there is no problem.
return unsafe { core::mem::transmute(&STACK) };
return unsafe { core::mem::transmute::<&Stack<Header>, &'static Stack<Header>>(&STACK) };
}

const fn get_alloc_size<E>() -> usize {
Expand Down

0 comments on commit c6a0153

Please sign in to comment.