Skip to content
Draft
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 input-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ libinput_1_27 = []
libinput_1_28 = []
libinput_1_29 = []
libinput_1_30 = []
libinput_1_31 = []
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, 31, 0),
(1, 30, 0),
(1, 29, 0),
(1, 28, 0),
Expand Down Expand Up @@ -107,7 +108,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 111 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:111:32 | 111 | 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