Remove redunant braces in type_name (#1153)

This commit is contained in:
Kitsu 2021-04-05 23:11:37 +03:00 committed by GitHub
parent 469c4ac130
commit 64e872ffd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,6 +211,6 @@ fn expand_derive_has_sql_type_struct(
fn type_name(ident: &Ident, explicit_name: Option<&TypeName>) -> TokenStream {
explicit_name.map(|tn| tn.get()).unwrap_or_else(|| {
let s = ident.to_string();
quote_spanned!(ident.span()=> { #s })
quote_spanned!(ident.span()=> #s)
})
}