Skip to content

Commit be9a26d

Browse files
committed
Derive Default for baseline bootstrap mode enum
1 parent d249cec commit be9a26d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/parsing/janusql_parser.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,13 @@ pub struct RegisterClause {
6464
pub name: String,
6565
}
6666

67-
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
67+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
6868
pub enum BaselineBootstrapMode {
6969
Last,
70+
#[default]
7071
Aggregate,
7172
}
7273

73-
impl Default for BaselineBootstrapMode {
74-
fn default() -> Self {
75-
Self::Aggregate
76-
}
77-
}
78-
7974
#[derive(Debug, Clone, PartialEq)]
8075
/// Structured window specification used by the AST.
8176
pub enum WindowSpec {

0 commit comments

Comments
 (0)