parent
9af5885632
commit
9dfc481c3b
@ -64,7 +64,7 @@ pub async fn run_generate_command(
|
||||
// Closures for filtering tables
|
||||
let filter_tables = |table: &str| -> bool {
|
||||
if !tables.is_empty() {
|
||||
return tables.contains(&table);
|
||||
return tables.contains(table);
|
||||
}
|
||||
|
||||
true
|
||||
|
@ -83,7 +83,7 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec<Attribute>) -> syn::Res
|
||||
if let Fields::Named(fields) = item_struct.fields {
|
||||
for field in fields.named {
|
||||
if let Some(ident) = &field.ident {
|
||||
let original_field_name = trim_starting_raw_identifier(&ident);
|
||||
let original_field_name = trim_starting_raw_identifier(ident);
|
||||
let mut field_name =
|
||||
Ident::new(&original_field_name.to_camel_case(), Span::call_site());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user