Skip to content

Commit 8914537

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 7c437e3 commit 8914537

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
@@ -1843,7 +1843,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
18431843
self.crate_types.templates_defined.insert(mangled_container.clone(), true);
18441844
let mut created_container: Vec<u8> = Vec::new();
18451845

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

0 commit comments

Comments
 (0)