Refactor
This commit is contained in:
parent
4e7bf8b836
commit
beca48d48e
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user