Skip to content

Commit 549dd70

Browse files
committed
fix clippy
1 parent e9037ac commit 549dd70

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ mio = { version = "1.0", default-features = false }
3333
cfg-if = "1.0.0"
3434
polling = "2.8.0"
3535
educe = "0.6.0"
36+
num-conv = "0.1.0"
3637

3738
libc = "0.2"
3839
rand = "0.9"

core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ mio = { workspace = true, features = [
4545
nix = { workspace = true, features = ["signal"] }
4646
libc.workspace = true
4747

48+
[target.'cfg(all(any(target_os = "linux", target_os = "android"), target_arch = "x86"))'.dependencies]
49+
num-conv.workspace = true
50+
4851
[target.'cfg(target_os = "linux")'.dependencies]
4952
io-uring = { workspace = true, optional = true }
5053

core/src/coroutine/korosensei.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use crate::{catch, warn};
77
use corosensei::stack::{DefaultStack, Stack};
88
use corosensei::trap::TrapHandlerRegs;
99
use corosensei::CoroutineResult;
10+
#[cfg(all(any(target_os = "linux", target_os = "android"), target_arch = "x86"))]
11+
use num_conv::CastSigned;
1012
use std::cell::{Cell, RefCell, UnsafeCell};
1113
use std::collections::VecDeque;
1214
use std::ffi::c_longlong;

0 commit comments

Comments
 (0)