Skip to content

Commit 6247d4b

Browse files
committed
Fix CI
1 parent 216e5b1 commit 6247d4b

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
- name: Format
2020
run: cargo fmt --check
2121
- name: Clippy
22-
run: cargo clippy
22+
run: cargo clippy && cargo clippy --all-features
2323
- name: Build
24-
run: cargo build --verbose
24+
run: cargo build --verbose --all-features
2525
- name: Run tests
26-
run: cargo test --verbose
26+
run: sudo chmod +rw /dev/uinput && cargo test --verbose --all-features
2727
- name: Doc
28-
run: cargo doc
28+
run: cargo doc --all-features
2929

3030
cross-linux:
3131
runs-on: ubuntu-latest
@@ -68,12 +68,12 @@ jobs:
6868
run: cargo doc --target ${{ matrix.target.rust }}
6969

7070
freebsd:
71-
runs-on: macos-12
71+
runs-on: ubuntu-latest
7272
name: build (FreeBSD)
7373
steps:
7474
- uses: actions/checkout@v3
7575
- name: Build
76-
uses: vmactions/freebsd-vm@v0
76+
uses: vmactions/freebsd-vm@v1
7777
with:
7878
envs: 'RUSTFLAGS'
7979
usesh: true
@@ -83,5 +83,5 @@ jobs:
8383
run: |
8484
curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
8585
. "$HOME/.cargo/env"
86-
cargo build
86+
cargo build --all-features
8787
cargo test

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "Apache-2.0 OR MIT"
77
repository = "https://github.com/cmr/evdev"
88
documentation = "https://docs.rs/evdev"
99
edition = "2021"
10-
rust-version = "1.63"
10+
rust-version = "1.64"
1111

1212
[features]
1313
serde = ["dep:serde"]

src/event_variants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ macro_rules! input_event_newtype {
111111
}
112112
impl Deref for $name {
113113
type Target = InputEvent;
114-
fn deref<'a>(&'a self) -> &'a InputEvent {
114+
fn deref(&self) -> &InputEvent {
115115
&self.0
116116
}
117117
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ fn fd_write_all(fd: std::os::fd::BorrowedFd<'_>, mut data: &[u8]) -> nix::Result
536536
match nix::unistd::write(fd, data) {
537537
Ok(0) => return Ok(()),
538538
Ok(n) => data = &data[n..],
539-
Err(e) if e == nix::Error::EINTR => {}
539+
Err(nix::Error::EINTR) => {}
540540
Err(e) => return Err(e),
541541
}
542542
}

src/sync_stream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ fn compensate_events(state: &mut Option<SyncState>, dev: &mut Device) -> Option<
571571
}
572572
}
573573

574-
impl<'a> Iterator for FetchEventsSynced<'a> {
574+
impl Iterator for FetchEventsSynced<'_> {
575575
type Item = InputEvent;
576576
fn next(&mut self) -> Option<InputEvent> {
577577
// first: check if we need to emit compensatory events due to a SYN_DROPPED we found in the
@@ -599,7 +599,7 @@ impl<'a> Iterator for FetchEventsSynced<'a> {
599599
}
600600
}
601601

602-
impl<'a> Drop for FetchEventsSynced<'a> {
602+
impl Drop for FetchEventsSynced<'_> {
603603
fn drop(&mut self) {
604604
self.dev.raw.event_buf.drain(..self.consumed_to);
605605
}

0 commit comments

Comments
 (0)