Skip to content

Commit 92091a9

Browse files
committed
Box TableSample to avoid increasing the size of Table
1 parent aa907f1 commit 92091a9

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/parser/mod.rs

+2-9
Original file line numberDiff line numberDiff line change
@@ -10717,11 +10717,7 @@ impl<'a> Parser<'a> {
1071710717
None
1071810718
};
1071910719
self.expect_token(&Token::RParen)?;
10720-
TableSample::Bucket(TableSampleBucket {
10721-
bucket,
10722-
total,
10723-
on,
10724-
})
10720+
TableSample::Bucket(TableSampleBucket { bucket, total, on })
1072510721
} else {
1072610722
let value = match self.try_parse(|p| p.parse_number_value()) {
1072710723
Ok(num) => num,
@@ -10754,10 +10750,7 @@ impl<'a> Parser<'a> {
1075410750
None
1075510751
};
1075610752
self.expect_token(&Token::RParen)?;
10757-
TableSample::Implicit(TableSampleImplicit {
10758-
value,
10759-
unit,
10760-
})
10753+
TableSample::Implicit(TableSampleImplicit { value, unit })
1076110754
}
1076210755
}
1076310756
} else {

0 commit comments

Comments
 (0)