mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 06:55:36 +02:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user