Skip to content

Commit

Permalink
Use std::os::raw::c_int instead of std::ffi::c_int
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 29, 2022
1 parent e5fe947 commit 6f459f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,19 @@ jobs:
cargo build --target x86_64-unknown-illumos
msrv:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
# When updating this, the reminder to update the minimum supported
# Rust version in Cargo.toml.
rust: ['1.47']
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
- run: cargo build

clippy:
Expand Down
2 changes: 1 addition & 1 deletion src/wepoll.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Bindings to wepoll (Windows).

use std::convert::TryInto;
use std::ffi::c_int;
use std::io;
use std::os::raw::c_int;
use std::os::windows::io::{AsRawHandle, RawHandle, RawSocket};
use std::ptr;
use std::sync::atomic::{AtomicBool, Ordering};
Expand Down

0 comments on commit 6f459f8

Please sign in to comment.