mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-14 17:12:58 +02:00
fix(windows): cmp vs. input type in result processor
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#![warn(clippy::all, clippy::nursery, clippy::pedantic)]
|
#![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::collections::HashMap;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ macro_rules! impl_process_windows_crate_integer_wrapper_result {
|
|||||||
$(
|
$(
|
||||||
impl ProcessWindowsCrateResult<$deref> for $input {
|
impl ProcessWindowsCrateResult<$deref> for $input {
|
||||||
fn process(self) -> Result<$deref> {
|
fn process(self) -> Result<$deref> {
|
||||||
if self.0 == 0 {
|
if self == $input(0) {
|
||||||
Err(std::io::Error::last_os_error().into())
|
Err(std::io::Error::last_os_error().into())
|
||||||
} else {
|
} else {
|
||||||
Ok(self.0)
|
Ok(self.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user