nushell/crates/nu-protocol/src/value
Leon e89e734ca2
Only abbreviate to "[table x rows]" if every value is a record (#7922)
# Description

Closes #6768.

BEFORE:
```
〉{ foo: [{a:1, b:2},2,3,4,5] }
╭─────┬────────────────╮
│ foo │ [table 5 rows] │
╰─────┴────────────────╯
```
AFTER:
```
〉{ foo: [{a:1, b:2},2,3,4,5] }
╭─────┬────────────────╮
│ foo │ [list 5 items] │
╰─────┴────────────────╯
```

# User-Facing Changes

See above.

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass

# After Submitting

If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
2023-02-02 17:03:36 -06:00
..
custom_value.rs SQLite overhaul: custom value, query db command (#5247) 2022-04-20 16:58:21 +12:00
from_value.rs Split blocks and closures (#7075) 2022-11-10 21:21:49 +13:00
from.rs filesize conversion (#5770) 2022-06-13 14:44:32 -05:00
lazy_record.rs LazyRecord (#7619) 2023-01-18 19:27:26 -08:00
mod.rs Only abbreviate to "[table x rows]" if every value is a record (#7922) 2023-02-02 17:03:36 -06:00
range.rs Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
stream.rs Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
unit.rs Remove month and year duration constants (#6613) 2022-09-26 09:55:13 +13:00