Skip to content

Commit ea50019

Browse files
committed
don't box
1 parent 9f91429 commit ea50019

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/ast/query.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,7 +2697,7 @@ pub enum PipeOperator {
26972697
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#union_pipe_operator>
26982698
Union {
26992699
set_quantifier: SetQuantifier,
2700-
queries: Vec<Box<Query>>,
2700+
queries: Vec<Query>,
27012701
},
27022702
/// Returns only the rows that are present in both the input table and the specified tables.
27032703
///
@@ -2706,7 +2706,7 @@ pub enum PipeOperator {
27062706
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#intersect_pipe_operator>
27072707
Intersect {
27082708
set_quantifier: SetQuantifier,
2709-
queries: Vec<Box<Query>>,
2709+
queries: Vec<Query>,
27102710
},
27112711
/// Returns only the rows that are present in the input table but not in the specified tables.
27122712
///
@@ -2715,7 +2715,7 @@ pub enum PipeOperator {
27152715
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#except_pipe_operator>
27162716
Except {
27172717
set_quantifier: SetQuantifier,
2718-
queries: Vec<Box<Query>>,
2718+
queries: Vec<Query>,
27192719
},
27202720
/// Calls a table function or procedure that returns a table.
27212721
///
@@ -2873,7 +2873,7 @@ impl PipeOperator {
28732873
f: &mut fmt::Formatter<'_>,
28742874
operation: &str,
28752875
set_quantifier: &SetQuantifier,
2876-
queries: &[Box<Query>],
2876+
queries: &[Query],
28772877
) -> fmt::Result {
28782878
write!(f, "{}", operation)?;
28792879
match set_quantifier {

src/parser/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9956,12 +9956,12 @@ impl<'a> Parser<'a> {
99569956
}
99579957

99589958
/// Parse comma-separated list of parenthesized queries for pipe operators
9959-
fn parse_pipe_operator_queries(&mut self) -> Result<Vec<Box<Query>>, ParserError> {
9959+
fn parse_pipe_operator_queries(&mut self) -> Result<Vec<Query>, ParserError> {
99609960
self.parse_comma_separated(|parser| {
99619961
parser.expect_token(&Token::LParen)?;
99629962
let query = parser.parse_query()?;
99639963
parser.expect_token(&Token::RParen)?;
9964-
Ok(query)
9964+
Ok(*query)
99659965
})
99669966
}
99679967

0 commit comments

Comments
 (0)