diff --git a/komorebi/src/main.rs b/komorebi/src/main.rs index 10d5c5a4..db30eb79 100644 --- a/komorebi/src/main.rs +++ b/komorebi/src/main.rs @@ -1,5 +1,5 @@ #![warn(clippy::all, clippy::nursery, clippy::pedantic)] -#![allow(clippy::missing_errors_doc)] +#![allow(clippy::missing_errors_doc, clippy::redundant_pub_crate)] use std::collections::HashMap; use std::fs::File; diff --git a/komorebi/src/windows_api.rs b/komorebi/src/windows_api.rs index ddcaae9f..ed25da39 100644 --- a/komorebi/src/windows_api.rs +++ b/komorebi/src/windows_api.rs @@ -130,7 +130,7 @@ macro_rules! impl_process_windows_crate_integer_wrapper_result { $( impl ProcessWindowsCrateResult<$deref> for $input { fn process(self) -> Result<$deref> { - if self.0 == 0 { + if self == $input(0) { Err(std::io::Error::last_os_error().into()) } else { Ok(self.0)