chore: Rust 1.68.0 clippy linting
This commit is contained in:
@@ -402,7 +402,6 @@ impl DockerData {
|
|||||||
self.spawns
|
self.spawns
|
||||||
.lock()
|
.lock()
|
||||||
.values()
|
.values()
|
||||||
.into_iter()
|
|
||||||
.for_each(tokio::task::JoinHandle::abort);
|
.for_each(tokio::task::JoinHandle::abort);
|
||||||
self.is_running
|
self.is_running
|
||||||
.store(false, std::sync::atomic::Ordering::SeqCst);
|
.store(false, std::sync::atomic::Ordering::SeqCst);
|
||||||
|
|||||||
@@ -482,7 +482,6 @@ pub fn heading_bar<B: Backend>(
|
|||||||
/// From a given &str, return the maximum number of chars on a single line
|
/// From a given &str, return the maximum number of chars on a single line
|
||||||
fn max_line_width(text: &str) -> usize {
|
fn max_line_width(text: &str) -> usize {
|
||||||
text.lines()
|
text.lines()
|
||||||
.into_iter()
|
|
||||||
.map(|i| i.chars().count())
|
.map(|i| i.chars().count())
|
||||||
.max()
|
.max()
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
@@ -530,7 +529,6 @@ impl HelpInfo {
|
|||||||
fn gen_name() -> Self {
|
fn gen_name() -> Self {
|
||||||
let mut spans = NAME_TEXT
|
let mut spans = NAME_TEXT
|
||||||
.lines()
|
.lines()
|
||||||
.into_iter()
|
|
||||||
.map(|i| Spans::from(Self::white_span(i)))
|
.map(|i| Spans::from(Self::white_span(i)))
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
spans.insert(0, Self::empty_span());
|
spans.insert(0, Self::empty_span());
|
||||||
|
|||||||
Reference in New Issue
Block a user