1
0
mirror of https://github.com/nushell/nushell.git synced 2025-05-21 10:20:46 +02:00
nushell/crates/nu-command/tests/commands/str_
Solomon 31e1f49cb6
fix ranges over zero-length input ()
Fixes 

# User-Facing Changes

Fixes panics when slicing empty input with inclusive ranges:

```nushell
> random binary 0 | bytes at 0..0
Error:   x Main thread panicked.
  |-> at crates/nu-protocol/src/value/range.rs:118:42
  `-> attempt to subtract with overflow
```
2025-02-08 19:57:28 -05:00
..
into_string.rs Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
join.rs Add string/binary type color to ByteStream () 2024-05-20 00:35:32 +00:00
mod.rs fix ranges over zero-length input () 2025-02-08 19:57:28 -05:00