mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-23 07:24:10 +00:00
chore: fix clippy error in ci (#803)
* chore: fix clippy error in ci * chore: fix fmt
This commit is contained in:
parent
4955863bdf
commit
b31ede7733
16 changed files with 371 additions and 444 deletions
|
@ -46,7 +46,7 @@ $ cargo run --feature json_example --example cli FILENAME.sql [--dialectname]
|
|||
"--hive" => Box::new(HiveDialect {}),
|
||||
"--redshift" => Box::new(RedshiftSqlDialect {}),
|
||||
"--generic" | "" => Box::new(GenericDialect {}),
|
||||
s => panic!("Unexpected parameter: {}", s),
|
||||
s => panic!("Unexpected parameter: {s}"),
|
||||
};
|
||||
|
||||
println!("Parsing from file '{}' using {:?}", &filename, dialect);
|
||||
|
@ -75,16 +75,16 @@ $ cargo run --feature json_example --example cli FILENAME.sql [--dialectname]
|
|||
#[cfg(feature = "json_example")]
|
||||
{
|
||||
let serialized = serde_json::to_string_pretty(&statements).unwrap();
|
||||
println!("Serialized as JSON:\n{}", serialized);
|
||||
println!("Serialized as JSON:\n{serialized}");
|
||||
}
|
||||
} else {
|
||||
println!("Parse results:\n{:#?}", statements);
|
||||
println!("Parse results:\n{statements:#?}");
|
||||
}
|
||||
|
||||
std::process::exit(0);
|
||||
}
|
||||
Err(e) => {
|
||||
println!("Error during parsing: {:?}", e);
|
||||
println!("Error during parsing: {e:?}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue