clippy gone wrong
This commit is contained in:
@@ -4,8 +4,8 @@ use std::{
|
|||||||
io::{BufRead, BufReader, Read},
|
io::{BufRead, BufReader, Read},
|
||||||
process::Child,
|
process::Child,
|
||||||
sync::{
|
sync::{
|
||||||
Arc, LazyLock,
|
|
||||||
mpsc::{self, Receiver},
|
mpsc::{self, Receiver},
|
||||||
|
Arc, LazyLock,
|
||||||
},
|
},
|
||||||
thread::JoinHandle,
|
thread::JoinHandle,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ use wgui::{
|
|||||||
event::{self, EventCallback},
|
event::{self, EventCallback},
|
||||||
i18n::Translation,
|
i18n::Translation,
|
||||||
layout::Layout,
|
layout::Layout,
|
||||||
parser::{CustomAttribsInfoOwned, parse_color_hex},
|
parser::{parse_color_hex, CustomAttribsInfoOwned},
|
||||||
widget::{EventResult, label::WidgetLabel},
|
widget::{label::WidgetLabel, EventResult},
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{gui::panel::helper::PipeReaderThread, state::AppState};
|
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));
|
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);
|
mut_state.next_try = Instant::now() + Duration::from_secs(15);
|
||||||
}
|
}
|
||||||
return Ok(());
|
return Ok(());
|
||||||
@@ -301,7 +301,7 @@ fn fifo_on_tick(
|
|||||||
label.set_text(common, Translation::from_raw_text(&text));
|
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);
|
mut_state.next_try = Instant::now() + Duration::from_secs(15);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user