summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r--src/codegen/mod.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs
index cc9b8b41..026c2ff9 100644
--- a/src/codegen/mod.rs
+++ b/src/codegen/mod.rs
@@ -3328,10 +3328,7 @@ impl TryToRustTy for Type {
IntKind::I64 => Ok(quote! { i64 }),
IntKind::U64 => Ok(quote! { u64 }),
IntKind::Custom { name, .. } => {
- let ident = ctx.rust_ident_raw(name);
- Ok(quote! {
- #ident
- })
+ Ok(proc_macro2::TokenStream::from_str(name).unwrap())
}
IntKind::U128 => {
Ok(if ctx.options().rust_features.i128_and_u128 {