Skip to content

Commit b533edb

Browse files
authored
Merge pull request #94 from Smithay/fixup-warrnings
chore: Fixup clippy warrnings
2 parents ad84a47 + a432bc9 commit b533edb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

input-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn main() {
107107
let bind_file = Path::new(&out_dir).join(&bind_name);
108108
let dest_file = dest_dir.join(&bind_name);
109109

110-
fs::create_dir_all(&dest_dir).unwrap();
110+
fs::create_dir_all(dest_dir).unwrap();
111111
fs::copy(&bind_file, &dest_file).unwrap();
112112
}
113113
}

src/device.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ pub enum DeviceConfigError {
142142
}
143143

144144
impl DeviceConfigError {
145+
#[cfg(feature = "libinput_1_29")]
145146
pub(crate) fn from_ffi(v: ffi::libinput_config_status) -> DeviceConfigResult {
146147
match v {
147148
ffi::libinput_config_status_LIBINPUT_CONFIG_STATUS_SUCCESS => Ok(()),

0 commit comments

Comments
 (0)