diff --git a/c2rust-transpile/src/translator/mod.rs b/c2rust-transpile/src/translator/mod.rs index 6c32f7cf68..10ba422ee2 100644 --- a/c2rust-transpile/src/translator/mod.rs +++ b/c2rust-transpile/src/translator/mod.rs @@ -4012,7 +4012,7 @@ impl<'c> Translation<'c> { text: &str, ) -> Option>> { let mut split = text.splitn(2, '('); - let ident = split.next()?; + let ident = split.next()?.trim(); let args = split.next()?.trim_end_matches(')'); let ts: TokenStream = syn::parse_str(args).ok()?;