chore: fix clippy error in ci (#803)

* chore: fix clippy error in ci

* chore: fix fmt
This commit is contained in:
Y Togami 2023-02-18 03:24:50 +09:00 committed by GitHub
parent 4955863bdf
commit b31ede7733
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 371 additions and 444 deletions

View file

@ -35,7 +35,7 @@ fn parse_literal_string() {
#[test]
fn parse_table_identifiers() {
fn test_table_ident(ident: &str, expected: Vec<Ident>) {
let sql = format!("SELECT 1 FROM {}", ident);
let sql = format!("SELECT 1 FROM {ident}");
let select = bigquery().verified_only_select(&sql);
assert_eq!(
select.from,
@ -51,7 +51,7 @@ fn parse_table_identifiers() {
);
}
fn test_table_ident_err(ident: &str) {
let sql = format!("SELECT 1 FROM {}", ident);
let sql = format!("SELECT 1 FROM {ident}");
assert!(bigquery().parse_sql_statements(&sql).is_err());
}