mirror of
https://github.com/nushell/nushell.git
synced 2025-08-16 01:18:12 +02:00
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:
committed by
GitHub
parent
7402589775
commit
1ea39abcff
@ -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);
|
||||
|
Reference in New Issue
Block a user