This commit is contained in:
Billy Chan 2021-05-18 18:46:46 +08:00
parent 8d92e09858
commit f8e3651517
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -10,7 +10,7 @@ pub fn expend_derive_from_query_result(ident: Ident, data: Data) -> syn::Result<
}) => named.named, }) => named.named,
_ => { _ => {
return Ok(quote_spanned! { return Ok(quote_spanned! {
ident.span() => compile_error!("you can only derive DeriveModel on structs"); ident.span() => compile_error!("you can only derive FromQueryResult on structs");
}) })
} }
}; };