Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ libinput_1_15 = ["input-sys/libinput_1_15", "libinput_1_14"]
libinput_1_19 = ["input-sys/libinput_1_19", "libinput_1_15"]
libinput_1_21 = ["input-sys/libinput_1_21", "libinput_1_19"]
libinput_1_23 = ["input-sys/libinput_1_23", "libinput_1_21"]
libinput_1_26 = ["input-sys/libinput_1_26", "libinput_1_23"]

[workspace]
members = [
Expand Down
1 change: 1 addition & 0 deletions input-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ libinput_1_15 = []
libinput_1_19 = []
libinput_1_21 = []
libinput_1_23 = []
libinput_1_26 = []
1 change: 1 addition & 0 deletions input-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use std::{env, path::Path};

const LIB_VERSIONS: &[(u8, u8, u8)] = &[
(1, 26, 0),
(1, 23, 0),
(1, 21, 0),
(1, 19, 0),
Expand Down Expand Up @@ -102,7 +103,7 @@
let bind_file = Path::new(&out_dir).join(&bind_name);
let dest_file = dest_dir.join(&bind_name);

fs::create_dir_all(&dest_dir).unwrap();

Check warning on line 106 in input-sys/build.rs

View workflow job for this annotation

GitHub Actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits --> input-sys/build.rs:106:32 | 106 | fs::create_dir_all(&dest_dir).unwrap(); | ^^^^^^^^^ help: change this to: `dest_dir` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
fs::copy(&bind_file, &dest_file).unwrap();
}
}
Expand Down
Loading
Loading