diff --git a/jay-config/src/io.rs b/jay-config/src/io.rs index 175d59b4..6eece9ad 100644 --- a/jay-config/src/io.rs +++ b/jay-config/src/io.rs @@ -30,7 +30,7 @@ enum AsyncError { impl From for io::Error { fn from(value: AsyncError) -> Self { - io::Error::new(ErrorKind::Other, value) + io::Error::other(value) } } diff --git a/src/cli/input.rs b/src/cli/input.rs index 970d9844..97222237 100644 --- a/src/cli/input.rs +++ b/src/cli/input.rs @@ -935,7 +935,6 @@ impl Input { } }); tc.round_trip().await; - let x = data.borrow_mut().clone(); - x + data.borrow_mut().clone() } } diff --git a/src/cli/randr.rs b/src/cli/randr.rs index c71d374a..b784a2fa 100644 --- a/src/cli/randr.rs +++ b/src/cli/randr.rs @@ -1154,7 +1154,6 @@ impl Randr { output.brightness = Some(msg.lux); }); tc.round_trip().await; - let x = data.borrow_mut().clone(); - x + data.borrow_mut().clone() } }