run cargo fmt

This commit is contained in:
Justin Haug 2019-04-22 17:50:12 -04:00
parent 80dccf6885
commit 80aceba630
2 changed files with 4 additions and 4 deletions

View file

@ -462,9 +462,7 @@ impl<'a> Tokenizer<'a> {
match ch {
'\'' => {
chars.next(); // consume
let escaped_quote = chars.peek()
.map(|c| *c == '\'')
.unwrap_or(false);
let escaped_quote = chars.peek().map(|c| *c == '\'').unwrap_or(false);
if escaped_quote {
s.push('\'');
chars.next();

View file

@ -159,7 +159,9 @@ fn parse_escaped_single_quote_string_predicate() {
Some(SQLBinaryExpr {
left: Box::new(SQLIdentifier("salary".to_string())),
op: NotEq,
right: Box::new(SQLValue(Value::SingleQuotedString("Jim's salary".to_string())))
right: Box::new(SQLValue(Value::SingleQuotedString(
"Jim's salary".to_string()
)))
}),
ast.selection,
);