refactor: clean up

This commit is contained in:
Matthieu Bessat 2025-10-11 23:01:31 +02:00
parent b96bdb3068
commit 46df9f7aeb
2 changed files with 0 additions and 5 deletions

View file

@ -107,7 +107,6 @@ fn gen_insert_method(model: &Model) -> TokenStream {
fn gen_insert_many_method(model: &Model) -> TokenStream {
let resource_ident = format_ident!("{}", &model.name);
let error_msg = format!("Failed to insert many entities of resource {:?}", model.name.clone());
let sql_columns = model.fields.iter()
.map(|f| f.name.clone())
.collect::<Vec<String>>()

View file

@ -53,10 +53,6 @@ enum GeneratorArgsSubCommands {
#[derive(FromArgs)]
/// SQLX Generator args
struct GeneratorArgs {
/// whether or not to debug
#[argh(switch, short = 'd')]
debug: bool,
/// path where to find Cargo.toml
#[argh(option)]
project_root: Option<String>,