mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 04:17:46 +02:00
Light fixes (#2455)
* Add optional commas for items in lists and tables * A couple last fixes
This commit is contained in:
@ -142,8 +142,8 @@ impl PrettyDebug for FormatInlineShape {
|
||||
let (right, right_inclusion) = &range.to;
|
||||
|
||||
let op = match (left_inclusion, right_inclusion) {
|
||||
(RangeInclusion::Inclusive, RangeInclusion::Exclusive) => "..",
|
||||
_ => unimplemented!("No syntax for ranges that aren't inclusive on the left and exclusive on the right")
|
||||
(RangeInclusion::Inclusive, RangeInclusion::Inclusive) => "..",
|
||||
_ => unimplemented!("No syntax for ranges that aren't inclusive on the left and inclusive on the right")
|
||||
};
|
||||
|
||||
left.clone().format().pretty() + b::operator(op) + right.clone().format().pretty()
|
||||
|
Reference in New Issue
Block a user