chore: Rust 1.68.0 clippy linting

This commit is contained in:
Jack Wills
2023-03-09 15:12:51 +00:00
parent 20b79e9cd5
commit 5582c45403
2 changed files with 0 additions and 3 deletions
-2
View File
@@ -482,7 +482,6 @@ pub fn heading_bar<B: Backend>(
/// From a given &str, return the maximum number of chars on a single line
fn max_line_width(text: &str) -> usize {
text.lines()
.into_iter()
.map(|i| i.chars().count())
.max()
.unwrap_or_default()
@@ -530,7 +529,6 @@ impl HelpInfo {
fn gen_name() -> Self {
let mut spans = NAME_TEXT
.lines()
.into_iter()
.map(|i| Spans::from(Self::white_span(i)))
.collect::<Vec<_>>();
spans.insert(0, Self::empty_span());