Skip to content

Commit 0ebcaae

Browse files
committed
SGA-12672 cargo lint fix
1 parent ad88d84 commit 0ebcaae

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ast/mod.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,10 +2788,11 @@ impl fmt::Display for Declare {
27882788
}
27892789

27902790
/// Sql options of a `CREATE TABLE` statement.
2791-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
2791+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, Default)]
27922792
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
27932793
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
27942794
pub enum CreateTableOptions {
2795+
#[default]
27952796
None,
27962797
/// Options specified using the `WITH` keyword.
27972798
/// e.g. `WITH (description = "123")`
@@ -2820,12 +2821,6 @@ pub enum CreateTableOptions {
28202821
TableProperties(Vec<SqlOption>),
28212822
}
28222823

2823-
impl Default for CreateTableOptions {
2824-
fn default() -> Self {
2825-
Self::None
2826-
}
2827-
}
2828-
28292824
impl fmt::Display for CreateTableOptions {
28302825
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
28312826
match self {

0 commit comments

Comments
 (0)