Skip to content

Commit

Permalink
Avoid huge ArrayPredicatePattern::Tilde struct variant (thanks clippy)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wahl <mwahl@wayfair.com>
  • Loading branch information
Matthias Wahl authored and mfelsche committed Jan 18, 2021
1 parent 11b1038 commit cf61402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tremor-script/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ pub enum ArrayPredicatePattern<'script> {
/// Expression
Expr(ImutExprInt<'script>),
/// Tilde predicate
Tilde(TestExpr),
Tilde(Box<TestExpr>),
/// Nested record pattern
Record(RecordPattern<'script>),
/// Don't care condition
Expand Down
2 changes: 1 addition & 1 deletion tremor-script/src/ast/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ impl<'script> Upable<'script> for ArrayPredicatePatternRaw<'script> {
use ArrayPredicatePatternRaw::{Expr, Ignore, Record, Tilde};
Ok(match self {
Expr(expr) => ArrayPredicatePattern::Expr(expr.up(helper)?),
Tilde(te) => ArrayPredicatePattern::Tilde(te.up(helper)?),
Tilde(te) => ArrayPredicatePattern::Tilde(Box::new(te.up(helper)?)),
Record(rp) => ArrayPredicatePattern::Record(rp.up(helper)?),
Ignore => ArrayPredicatePattern::Ignore,
//Array(ap) => ArrayPredicatePattern::Array(ap),
Expand Down

0 comments on commit cf61402

Please sign in to comment.