Apply suggestions from cargo fix --edition-idioms

This commit is contained in:
Nickolay Ponomarev 2019-04-21 00:07:43 +03:00
parent b12a19e197
commit 0634ec4a83
3 changed files with 11 additions and 11 deletions

View file

@ -1070,7 +1070,7 @@ fn parse_sql_expr(sql: &str) -> ASTNode {
generic_ast
}
fn parse_sql_expr_with(dialect: &Dialect, sql: &str) -> ASTNode {
fn parse_sql_expr_with(dialect: &dyn Dialect, sql: &str) -> ASTNode {
let mut tokenizer = Tokenizer::new(dialect, &sql);
let tokens = tokenizer.tokenize().unwrap();
let mut parser = Parser::new(tokens);