Skip to content

Commit 2026abc

Browse files
author
aleksei.p
committed
linter - clippy/doc
1 parent 8c759d6 commit 2026abc

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/ast/data_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ pub enum DataType {
274274
String(Option<u64>),
275275
/// A fixed-length string e.g [ClickHouse][1].
276276
///
277-
/// [1] https://clickhouse.com/docs/en/sql-reference/data-types/fixedstring
277+
/// [1]: https://clickhouse.com/docs/en/sql-reference/data-types/fixedstring
278278
FixedString(u64),
279279
/// Bytea
280280
Bytea,

src/parser/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,9 +2236,10 @@ impl<'a> Parser<'a> {
22362236
/// ```sql
22372237
/// [field_name] field_type
22382238
/// ```
2239-
/// [1] https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#declaring_a_struct_type
2240-
/// [2] https://clickhouse.com/docs/en/sql-reference/data-types/nested-data-structures/nested
2241-
/// [3] https://clickhouse.com/docs/en/sql-reference/data-types/tuple
2239+
///
2240+
/// [1]: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#declaring_a_struct_type
2241+
/// [2]: https://clickhouse.com/docs/en/sql-reference/data-types/nested-data-structures/nested
2242+
/// [3]: https://clickhouse.com/docs/en/sql-reference/data-types/tuple
22422243
fn parse_struct_field_def(
22432244
&mut self,
22442245
allow_anonymous: bool,

tests/sqlparser_clickhouse.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ fn parse_create_table_with_nullable() {
263263
name: Ident::new("d"),
264264
data_type: DataType::Date32,
265265
collation: None,
266-
options: vec![
267-
ColumnOptionDef{name: None, option: ColumnOption::Null}
268-
],
266+
options: vec![ColumnOptionDef {
267+
name: None,
268+
option: ColumnOption::Null
269+
}],
269270
},
270271
]
271272
);

0 commit comments

Comments
 (0)