Fix clippy (#15489)

# Description
There are some clippy(version 0.1.86) errors on nushell repo. This pr is
trying to fix it.

# User-Facing Changes
Hopefully none.

# Tests + Formatting
NaN

# After Submitting
NaN
This commit is contained in:
Wind
2025-04-06 09:49:28 +08:00
committed by GitHub
parent 67ea25afca
commit 1c6c85d35d
19 changed files with 30 additions and 35 deletions

View File

@ -119,7 +119,7 @@ fn build_vertical_map(record: Record, config: &Config) -> TableValue {
fn string_append_to_width(key: &mut String, max: usize) {
let width = string_width(key);
let rest = max - width;
key.extend(std::iter::repeat(' ').take(rest));
key.extend(std::iter::repeat_n(' ', rest));
}
fn build_vertical_array(vals: Vec<Value>, config: &Config) -> TableValue {