Fix clippy warnings

This commit is contained in:
Billy Chan 2021-12-07 22:41:27 +08:00
parent 90122374aa
commit 2e26fa3873
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -33,7 +33,7 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec<Attribute>) -> syn::Res
}
});
let entity_def = table_name
.clone()
.as_ref()
.map(|table_name| {
quote! {
#[derive(Copy, Clone, Default, Debug, sea_orm::prelude::DeriveEntity)]