Skip to content

Commit f9298a7

Browse files
committed
fix clippy
1 parent 4468924 commit f9298a7

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
@@ -58,7 +58,7 @@ impl<'c, Param, Yield, Return> Coroutine<'c, Param, Yield, Return> {
5858
target_arch = "x86",
5959
))] {
6060
let sp = context.uc_mcontext.gregs[usize::try_from(libc::REG_ESP)
61-
.unwrap_or_else(|| panic!("{} overflow", libc::REG_ESP))].try_into().unwrap();
61+
.unwrap_or_else(|_| panic!("{} overflow", libc::REG_ESP))].try_into().unwrap();
6262
} else if #[cfg(all(target_vendor = "apple", target_arch = "x86_64"))] {
6363
let sp = u64::try_from((*context.uc_mcontext).__ss.__rsp).expect("overflow");
6464
} else if #[cfg(all(

0 commit comments

Comments
 (0)