Apply more recent/nightly clippy lints (#7916)

# Description

- Use inline format strings in dataframe code
- Fix manual `.is_ascii_digit()` check
- Remove unnecessary `.into_iter()` calls
This commit is contained in:
Stefan Holderbach
2023-01-30 14:06:36 +01:00
committed by GitHub
parent 7402589775
commit 1ea39abcff
20 changed files with 56 additions and 81 deletions

View File

@ -339,7 +339,7 @@ fn convert_to_table2<'a>(
));
}
for (row, item) in input.clone().into_iter().enumerate() {
for (row, item) in input.clone().enumerate() {
if let Some(ctrlc) = &ctrlc {
if ctrlc.load(Ordering::SeqCst) {
return Ok(None);
@ -436,7 +436,7 @@ fn convert_to_table2<'a>(
header_style(style_computer, header.clone()),
));
for (row, item) in input.clone().into_iter().enumerate() {
for (row, item) in input.clone().enumerate() {
if let Some(ctrlc) = &ctrlc {
if ctrlc.load(Ordering::SeqCst) {
return Ok(None);
@ -476,7 +476,7 @@ fn convert_to_table2<'a>(
column_width = string_width(&header);
for (row, item) in input.clone().into_iter().enumerate() {
for (row, item) in input.clone().enumerate() {
if let Some(ctrlc) = &ctrlc {
if ctrlc.load(Ordering::SeqCst) {
return Ok(None);
@ -503,7 +503,7 @@ fn convert_to_table2<'a>(
column_width = string_width(&header);
for (row, item) in input.clone().into_iter().enumerate() {
for (row, item) in input.clone().enumerate() {
if let Some(ctrlc) = &ctrlc {
if ctrlc.load(Ordering::SeqCst) {
return Ok(None);