Skip to content

Commit 471a636

Browse files
committed
Fix clippy
1 parent eb7c05d commit 471a636

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/ast/ddl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ impl fmt::Display for AlterColumnOperation {
820820
AlterColumnOperation::SetDefault { value } => {
821821
write!(f, "SET DEFAULT {value}")
822822
}
823-
AlterColumnOperation::DropDefault {} => {
823+
AlterColumnOperation::DropDefault => {
824824
write!(f, "DROP DEFAULT")
825825
}
826826
AlterColumnOperation::SetDataType { data_type, using } => {

src/ast/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -651,17 +651,17 @@ pub enum Expr {
651651
/// such as maps, arrays, and lists:
652652
/// - Array
653653
/// - A 1-dim array `a[1]` will be represented like:
654-
/// `CompoundFieldAccess(Ident('a'), vec![Subscript(1)]`
654+
/// `CompoundFieldAccess(Ident('a'), vec![Subscript(1)]`
655655
/// - A 2-dim array `a[1][2]` will be represented like:
656-
/// `CompoundFieldAccess(Ident('a'), vec![Subscript(1), Subscript(2)]`
656+
/// `CompoundFieldAccess(Ident('a'), vec![Subscript(1), Subscript(2)]`
657657
/// - Map or Struct (Bracket-style)
658658
/// - A map `a['field1']` will be represented like:
659-
/// `CompoundFieldAccess(Ident('a'), vec![Subscript('field')]`
659+
/// `CompoundFieldAccess(Ident('a'), vec![Subscript('field')]`
660660
/// - A 2-dim map `a['field1']['field2']` will be represented like:
661-
/// `CompoundFieldAccess(Ident('a'), vec![Subscript('field1'), Subscript('field2')]`
661+
/// `CompoundFieldAccess(Ident('a'), vec![Subscript('field1'), Subscript('field2')]`
662662
/// - Struct (Dot-style) (only effect when the chain contains both subscript and expr)
663663
/// - A struct access `a[field1].field2` will be represented like:
664-
/// `CompoundFieldAccess(Ident('a'), vec![Subscript('field1'), Ident('field2')]`
664+
/// `CompoundFieldAccess(Ident('a'), vec![Subscript('field1'), Ident('field2')]`
665665
/// - If a struct access likes `a.field1.field2`, it will be represented by CompoundIdentifier([a, field1, field2])
666666
CompoundFieldAccess {
667667
root: Box<Expr>,
@@ -7359,7 +7359,7 @@ impl fmt::Display for CopyTarget {
73597359
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
73607360
use CopyTarget::*;
73617361
match self {
7362-
Stdin { .. } => write!(f, "STDIN"),
7362+
Stdin => write!(f, "STDIN"),
73637363
Stdout => write!(f, "STDOUT"),
73647364
File { filename } => write!(f, "'{}'", value::escape_single_quote_string(filename)),
73657365
Program { command } => write!(

src/keywords.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
//! This module defines
1919
//! 1) a list of constants for every keyword
2020
//! 2) an `ALL_KEYWORDS` array with every keyword in it
21-
//! This is not a list of *reserved* keywords: some of these can be
22-
//! parsed as identifiers if the parser decides so. This means that
23-
//! new keywords can be added here without affecting the parse result.
21+
//! This is not a list of *reserved* keywords: some of these can be
22+
//! parsed as identifiers if the parser decides so. This means that
23+
//! new keywords can be added here without affecting the parse result.
2424
//!
2525
//! As a matter of fact, most of these keywords are not used at all
26-
//! and could be removed.
26+
//! and could be removed.
2727
//! 3) a `RESERVED_FOR_TABLE_ALIAS` array with keywords reserved in a
28-
//! "table alias" context.
28+
//! "table alias" context.
2929
3030
#[cfg(feature = "serde")]
3131
use serde::{Deserialize, Serialize};

0 commit comments

Comments
 (0)