fix clippy issues

This commit is contained in:
Graham McIntire 2026-01-29 12:02:20 -06:00
parent cee8d693da
commit b8932f16b0
No known key found for this signature in database

View file

@ -677,7 +677,7 @@ async fn run_monitoring_task(
.as_secs() as i64,
};
if let Err(_) = check_tx.send(check) {
if check_tx.send(check).is_err() {
crate::log_warn!(
"Monitoring task for device {}: channel closed, stopping task (connection may have dropped)",
device_id
@ -701,7 +701,7 @@ async fn run_monitoring_task(
.as_secs() as i64,
};
if let Err(_) = check_tx.send(check) {
if check_tx.send(check).is_err() {
crate::log_warn!(
"Monitoring task for device {}: channel closed, stopping task (connection may have dropped)",
device_id