mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-06 05:42:38 +00:00
Remove redunant braces in type_name (#1153)
This commit is contained in:
parent
469c4ac130
commit
64e872ffd8
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user