mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Shrink smallvecs
This commit is contained in:
parent
20ce0548cc
commit
34b9df8281
2 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ pub enum Expr {
|
|||
Func(Ident, Vec<Expr>),
|
||||
Apply(Box<Expr>, Vec<Expr>),
|
||||
Operator(Box<Expr>, Operator, Box<Expr>),
|
||||
Closure(SmallVec<[Pattern; 4]>, Box<Expr>),
|
||||
Closure(SmallVec<[Pattern; 2]>, Box<Expr>),
|
||||
|
||||
// Sum Types
|
||||
ApplyVariant(String, Option<Vec<Expr>>),
|
||||
|
@ -29,7 +29,7 @@ pub enum Expr {
|
|||
|
||||
// Conditionals
|
||||
If(Box<Expr>, Box<Expr>, Box<Expr>),
|
||||
Case(Box<Expr>, SmallVec<[(Pattern, Box<Expr>); 4]>),
|
||||
Case(Box<Expr>, SmallVec<[(Pattern, Box<Expr>); 2]>),
|
||||
|
||||
// Error
|
||||
Error(Problem),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue