Skip to content

Commit f72c54f

Browse files
committed
fix clippy
1 parent 42608af commit f72c54f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/coroutine/korosensei.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ impl<'c, Param, Yield, Return> Coroutine<'c, Param, Yield, Return> {
5757
any(target_os = "linux", target_os = "android"),
5858
target_arch = "x86",
5959
))] {
60-
let sp = context.uc_mcontext.gregs[usize::try_from(libc::REG_ESP).expect("overflow")].try_into().unwrap();
60+
let sp = context.uc_mcontext.gregs[usize::try_from(libc::REG_ESP).expect("overflow")];
61+
println!("the sp:{sp}");
62+
let sp = sp..try_into().unwrap();
6163
} else if #[cfg(all(target_vendor = "apple", target_arch = "x86_64"))] {
6264
let sp = u64::try_from((*context.uc_mcontext).__ss.__rsp).expect("overflow");
6365
} else if #[cfg(all(

0 commit comments

Comments
 (0)