Skip to content

Commit 1479016

Browse files
committed
[bindings] Drop useless #[no_mangle] from pub type definitions
Newer rustc complains that "attribute should be applied to a function or static"
1 parent 554af1e commit 1479016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c-bindings-gen/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
18551855
self.crate_types.templates_defined.insert(mangled_container.clone(), true);
18561856
let mut created_container: Vec<u8> = Vec::new();
18571857

1858-
write!(&mut created_container, "#[no_mangle]\npub type {} = ", mangled_container).unwrap();
1858+
write!(&mut created_container, "pub type {} = ", mangled_container).unwrap();
18591859
write!(&mut created_container, "{}::C{}Templ<", Self::container_templ_path(), container_type).unwrap();
18601860
self.write_template_generics(&mut created_container, &mut args.iter().map(|t| *t), generics, is_ref, true);
18611861
writeln!(&mut created_container, ">;").unwrap();

0 commit comments

Comments
 (0)