Skip to content

Commit d1a109a

Browse files
committed
fix clippy
1 parent 549dd70 commit d1a109a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/coroutine/korosensei.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl<'c, Param, Yield, Return> Coroutine<'c, Param, Yield, Return> {
5959
any(target_os = "linux", target_os = "android"),
6060
target_arch = "x86",
6161
))] {
62-
let sp = u64::from(i32::cast_signed(context.uc_mcontext.gregs[usize::try_from(libc::REG_ESP).expect("overflow")]));
62+
let sp = u64::cast_signed(context.uc_mcontext.gregs[usize::try_from(libc::REG_ESP).expect("overflow")]);
6363
} else if #[cfg(all(target_vendor = "apple", target_arch = "x86_64"))] {
6464
let sp = u64::try_from((*context.uc_mcontext).__ss.__rsp).expect("overflow");
6565
} else if #[cfg(all(

0 commit comments

Comments
 (0)