mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:15:53 +02:00
touchup some clippy warnings in tests (#6612)
This commit is contained in:
@ -5,7 +5,7 @@ use nu_protocol::{Span, Value};
|
||||
// generate a new table data with `row_cnt` rows, `col_cnt` columns.
|
||||
fn new_test_data(row_cnt: usize, col_cnt: usize) -> Value {
|
||||
let columns: Vec<String> = (0..col_cnt).map(|x| format!("col_{x}")).collect();
|
||||
let vals: Vec<Value> = (0..col_cnt as i64).map(|i| Value::test_int(i)).collect();
|
||||
let vals: Vec<Value> = (0..col_cnt as i64).map(Value::test_int).collect();
|
||||
|
||||
Value::List {
|
||||
vals: (0..row_cnt)
|
||||
|
Reference in New Issue
Block a user