mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 23:58:06 +02:00
Remove Value::MatchPattern
(#11356)
# Description `Value::MatchPattern` implies that `MatchPattern`s are first-class values. This PR removes this case, and commands must now instead use `Expr::MatchPattern` to extract `MatchPattern`s just like how the `match` command does using `Expr::MatchBlock`. # User-Facing Changes Breaking API change for `nu_protocol` crate.
This commit is contained in:
@ -131,8 +131,7 @@ impl<'a> StyleComputer<'a> {
|
||||
Value::Closure { .. }
|
||||
| Value::CustomValue { .. }
|
||||
| Value::Error { .. }
|
||||
| Value::LazyRecord { .. }
|
||||
| Value::MatchPattern { .. } => TextStyle::basic_left(),
|
||||
| Value::LazyRecord { .. } => TextStyle::basic_left(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user