This commit is contained in:
Billy Chan 2021-09-16 14:59:48 +08:00
parent 4e7bf8b836
commit beca48d48e
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -15,9 +15,9 @@ pub fn expand_derive_active_model(ident: Ident, data: Data) -> syn::Result<Token
ident.span() => compile_error!("you can only derive DeriveActiveModel on structs"); ident.span() => compile_error!("you can only derive DeriveActiveModel on structs");
}) })
} }
}; }
.into_iter()
let fields = fields.into_iter().filter(field_not_ignored); .filter(field_not_ignored);
let field: Vec<Ident> = fields let field: Vec<Ident> = fields
.clone() .clone()