touchup some clippy warnings in tests (#6612)

This commit is contained in:
JT
2022-09-26 09:06:13 +13:00
committed by GitHub
parent b47bd22b37
commit 43905caa46
5 changed files with 9 additions and 9 deletions

View File

@ -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)