nushell/crates/nu-table/src
Mussar 2229370b13
replace repeat().take() with repeat_n() (#15575)
# Description

This updates `string_expand()` in nu-table's util.rs to use the
`std::iter` library's `repeat_n()` function, which was suggested as a
more readable version of the existing `repeat().take()` implementation.

# User-Facing Changes
 
Should have no user facing changes.

# Tests + Formatting

All green circles!
```
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib
```
2025-04-15 23:29:32 +08:00
..
types fix f25525b (#15500) 2025-04-11 08:02:01 -05:00
common.rs finish removing terminal_size dep (#14819) 2025-01-13 07:00:21 -06:00
lib.rs Bump tabled to 0.17 (#14415) 2024-12-28 08:19:48 -06:00
table_theme.rs Bump tabled to 0.17 (#14415) 2024-12-28 08:19:48 -06:00
table.rs fix f25525b (#15500) 2025-04-11 08:02:01 -05:00
unstructured_table.rs Fix clippy (#15489) 2025-04-06 09:49:28 +08:00
util.rs replace repeat().take() with repeat_n() (#15575) 2025-04-15 23:29:32 +08:00