Skip to content

Commit 2709b7f

Browse files
committed
Update aya to 0.12
Signed-off-by: Sean Young <[email protected]>
1 parent 37471dd commit 2709b7f

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

Diff for: Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ itertools = "0.12"
1818
evdev = "0.12.1"
1919
mio = { version = "0.8", features = [ "os-poll", "os-ext" ] }
2020
libc = "0.2"
21-
nix = { version = "0.27", features = [ "fs", "ioctl" ] }
21+
nix = { version = "0.28", features = [ "fs", "ioctl" ] }
2222
regex = "1"
2323
humantime = "2.1"
24-
aya = "0.11"
24+
aya = "0.12"
2525
bitflags = "2.3"
2626
num-integer = "0.1"
2727
terminal_size = "0.3"

Diff for: irp/tests/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ fn arithmetic_in_bitspec() {
647647

648648
let irp = Irp::parse("{.0k}<2,-3||-1>(1m,-100m)");
649649

650-
assert_eq!(irp.err(), Some("parse error at error at 1:11: expected one of \",\", \".\", \">\", \"m\", \"p\", \"u\", ['0' ..= '9']".into()));
650+
assert_eq!(irp.err(), Some("parse error at error at 1:11: expected one of \",\", \".\", \">\", \"m\", \"p\", \"u\", ['0'..='9']".into()));
651651

652652
let irp = Irp::parse("{100}<>(1,-2,2u,-100m)").unwrap();
653653

Diff for: irp/tests/transmogrifier_compare/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ publish = false
88
irp = { path = "../.." }
99
irptransmogrifier = { path = "../rust-irptransmogrifier" }
1010
rand = "0.8"
11-
itertools = "0.11"
11+
itertools = "0.12"
1212

1313
[workspace]

Diff for: src/bin/cir.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use clap::{Arg, ArgGroup, Command};
44
use evdev::Device;
55
use itertools::Itertools;
66
use log::{Level, LevelFilter, Metadata, Record};
7-
use std::{convert::TryInto, os::unix::io::AsRawFd, path::PathBuf};
7+
use std::{convert::TryInto, path::PathBuf};
88

99
mod commands;
1010

@@ -612,7 +612,7 @@ fn print_rc_dev(list: &[rcdev::Rcdev], matches: &clap::ArgMatches) {
612612
}
613613
);
614614

615-
match LircMode2::query(lircdev.as_raw_fd()) {
615+
match LircMode2::query(lircdev.as_file()) {
616616
Ok(list) => {
617617
print!("\tBPF protocols\t\t: ");
618618

Diff for: src/lirc.rs

+4
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,10 @@ impl Lirc {
449449

450450
Ok(res)
451451
}
452+
453+
pub fn as_file(&self) -> &File {
454+
&self.file
455+
}
452456
}
453457

454458
impl AsRawFd for Lirc {

0 commit comments

Comments
 (0)