Skip to content

Commit

Permalink
Check in cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Oct 5, 2023
1 parent 7d5cd95 commit 1257387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1826,9 +1826,8 @@ pub enum Statement {
Pragma {
name: ObjectName,
value: Option<Value>,
is_eq: bool
}

is_eq: bool,
},
}

impl fmt::Display for Statement {
Expand Down Expand Up @@ -3187,11 +3186,7 @@ impl fmt::Display for Statement {
} => {
write!(f, "CREATE TYPE {name} AS {representation}")
}
Statement::Pragma {
name,
value,
is_eq
} => {
Statement::Pragma { name, value, is_eq } => {
write!(f, "PRAGMA {name}")?;
if value.is_some() {
let val = value.as_ref().unwrap();
Expand Down
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7418,7 +7418,7 @@ impl<'a> Parser<'a> {
Ok(Statement::Pragma {
name,
value: None,
is_eq: false
is_eq: false,
})
}
}
Expand Down

0 comments on commit 1257387

Please sign in to comment.