mirror of https://github.com/smol-rs/polling
Fix failing CI (#130)
- Disable async-io tests for wine - Fix errant cast in Android Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
parent
53793382a7
commit
49152081d0
|
@ -111,14 +111,6 @@ jobs:
|
|||
target: x86_64-pc-windows-gnu
|
||||
runner: wine@7.13
|
||||
- run: cargo test --target x86_64-pc-windows-gnu
|
||||
- name: Clone async-io
|
||||
run: git clone https://github.com/smol-rs/async-io.git
|
||||
- name: Add patch section
|
||||
run: echo '[patch.crates-io]' >> async-io/Cargo.toml
|
||||
- name: Patch polling
|
||||
run: echo 'polling = { path = ".." }' >> async-io/Cargo.toml
|
||||
- name: Test async-io
|
||||
run: cargo test --manifest-path=async-io/Cargo.toml
|
||||
|
||||
msrv:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
|
@ -164,7 +164,7 @@ impl Poller {
|
|||
None => TS_ZERO,
|
||||
Some(t) => {
|
||||
let mut ts = TS_ZERO;
|
||||
ts.tv_sec = t.as_secs() as libc::time_t;
|
||||
ts.tv_sec = t.as_secs() as _;
|
||||
ts.tv_nsec = (t.subsec_nanos() as libc::c_long).into();
|
||||
ts
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue