mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Some cleanup, better subexpressions
This commit is contained in:
@ -16,9 +16,7 @@ pub fn parse_int() {
|
||||
assert!(err.is_none());
|
||||
assert!(block.len() == 1);
|
||||
match &block[0] {
|
||||
Statement::Pipeline(Pipeline {
|
||||
expressions: expressions,
|
||||
}) => {
|
||||
Statement::Pipeline(Pipeline { expressions }) => {
|
||||
assert!(expressions.len() == 1);
|
||||
assert!(matches!(
|
||||
expressions[0],
|
||||
|
Reference in New Issue
Block a user