From ca3dd2d2a13d8314871129bee1f0a19758846dce Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Wed, 15 Sep 2021 10:45:09 +0800 Subject: [PATCH] cargo fmt --- sea-orm-macros/src/derives/entity_model.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sea-orm-macros/src/derives/entity_model.rs b/sea-orm-macros/src/derives/entity_model.rs index bd6b332d..66c5725f 100644 --- a/sea-orm-macros/src/derives/entity_model.rs +++ b/sea-orm-macros/src/derives/entity_model.rs @@ -163,7 +163,9 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec) -> syn::Res "bool" => quote! { Boolean }, "NaiveDate" => quote! { Date }, "NaiveTime" => quote! { Time }, - "DateTime" | "NaiveDateTime" | "DateTimeWithTimeZone" => quote! { DateTime }, + "DateTime" | "NaiveDateTime" | "DateTimeWithTimeZone" => { + quote! { DateTime } + } "Uuid" => quote! { Uuid }, "Json" => quote! { Json }, "Decimal" => quote! { Decimal },