nushell/crates/nu-table
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
..
examples Bump tabled to 0.17 (#14415) 2024-12-28 08:19:48 -06:00
src replace repeat().take() with repeat_n() (#15575) 2025-04-15 23:29:32 +08:00
tests fix f25525b (#15500) 2025-04-11 08:02:01 -05:00
.gitignore Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
Cargo.toml Bump to 0.103.1 dev version (#15347) 2025-03-19 00:12:01 -04:00
LICENSE Fix rest of license year ranges (#8727) 2023-04-04 09:03:29 +12:00
README.md Add top-level crate documentation/READMEs (#12907) 2024-07-14 10:10:41 +02:00

The layout logic for Nushell's table viewer.

See also the separate table command implementation

Internal Nushell crate

This crate implements components of Nushell and is not designed to support plugin authors or other users directly.