From 3b1c907798e9835b3b3202efb5652253632c3af2 Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Fri, 12 Dec 2025 20:58:02 +0900 Subject: [PATCH] clippy gone wrong --- wlx-overlay-s/src/gui/panel/helper.rs | 2 +- wlx-overlay-s/src/gui/panel/label.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wlx-overlay-s/src/gui/panel/helper.rs b/wlx-overlay-s/src/gui/panel/helper.rs index 9594103..63889d6 100644 --- a/wlx-overlay-s/src/gui/panel/helper.rs +++ b/wlx-overlay-s/src/gui/panel/helper.rs @@ -4,8 +4,8 @@ use std::{ io::{BufRead, BufReader, Read}, process::Child, sync::{ - Arc, LazyLock, mpsc::{self, Receiver}, + Arc, LazyLock, }, thread::JoinHandle, }; diff --git a/wlx-overlay-s/src/gui/panel/label.rs b/wlx-overlay-s/src/gui/panel/label.rs index 66253b2..4a8aead 100644 --- a/wlx-overlay-s/src/gui/panel/label.rs +++ b/wlx-overlay-s/src/gui/panel/label.rs @@ -17,8 +17,8 @@ use wgui::{ event::{self, EventCallback}, i18n::Translation, layout::Layout, - parser::{CustomAttribsInfoOwned, parse_color_hex}, - widget::{EventResult, label::WidgetLabel}, + parser::{parse_color_hex, CustomAttribsInfoOwned}, + widget::{label::WidgetLabel, EventResult}, }; use crate::{gui::panel::helper::PipeReaderThread, state::AppState}; @@ -210,7 +210,7 @@ fn shell_on_tick( label.set_text(common, Translation::from_raw_text(&text)); } - if reader.is_finished() && !mut_state.reader.take().unwrap().is_success() { + if reader.is_finished() && !mut_state.reader.take().unwrap().check_success() { mut_state.next_try = Instant::now() + Duration::from_secs(15); } return Ok(()); @@ -301,7 +301,7 @@ fn fifo_on_tick( label.set_text(common, Translation::from_raw_text(&text)); } - if reader.is_finished() && !mut_state.reader.take().unwrap().is_success() { + if reader.is_finished() && !mut_state.reader.take().unwrap().check_success() { mut_state.next_try = Instant::now() + Duration::from_secs(15); } }