@@ -1327,15 +1327,18 @@ pub enum ColumnOption {
13271327 /// `DEFAULT <restricted-expr>`
13281328 Default ( Expr ) ,
13291329
1330- /// ClickHouse supports `MATERIALIZE`, `EPHEMERAL` and `ALIAS` expr to generate default values.
1330+ /// `MATERIALIZE < expr>`
13311331 /// Syntax: `b INT MATERIALIZE (a + 1)`
1332+ ///
13321333 /// [ClickHouse](https://clickhouse.com/docs/en/sql-reference/statements/create/table#default_values)
1333-
1334- /// `MATERIALIZE <expr>`
13351334 Materialized ( Expr ) ,
13361335 /// `EPHEMERAL [<expr>]`
1336+ ///
1337+ /// [ClickHouse](https://clickhouse.com/docs/en/sql-reference/statements/create/table#default_values)
13371338 Ephemeral ( Option < Expr > ) ,
13381339 /// `ALIAS <expr>`
1340+ ///
1341+ /// [ClickHouse](https://clickhouse.com/docs/en/sql-reference/statements/create/table#default_values)
13391342 Alias ( Expr ) ,
13401343
13411344 /// `{ PRIMARY KEY | UNIQUE } [<constraint_characteristics>]`
@@ -1552,7 +1555,7 @@ pub enum GeneratedExpressionMode {
15521555#[ must_use]
15531556fn display_constraint_name ( name : & ' _ Option < Ident > ) -> impl fmt:: Display + ' _ {
15541557 struct ConstraintName < ' a > ( & ' a Option < Ident > ) ;
1555- impl < ' a > fmt:: Display for ConstraintName < ' a > {
1558+ impl fmt:: Display for ConstraintName < ' _ > {
15561559 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
15571560 if let Some ( name) = self . 0 {
15581561 write ! ( f, "CONSTRAINT {name} " ) ?;
@@ -1573,7 +1576,7 @@ fn display_option<'a, T: fmt::Display>(
15731576 option : & ' a Option < T > ,
15741577) -> impl fmt:: Display + ' a {
15751578 struct OptionDisplay < ' a , T > ( & ' a str , & ' a str , & ' a Option < T > ) ;
1576- impl < ' a , T : fmt:: Display > fmt:: Display for OptionDisplay < ' a , T > {
1579+ impl < T : fmt:: Display > fmt:: Display for OptionDisplay < ' _ , T > {
15771580 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
15781581 if let Some ( inner) = self . 2 {
15791582 let ( prefix, postfix) = ( self . 0 , self . 1 ) ;
0 commit comments