Remove redundant header branch from write_cxx_function_shim
These shims only get emitted in the non-header case in the first place.
diff --git a/gen/src/write.rs b/gen/src/write.rs
index f259222..25f1b0b 100644
--- a/gen/src/write.rs
+++ b/gen/src/write.rs
@@ -496,10 +496,8 @@
}
fn write_cxx_function_shim(out: &mut OutFile, efn: &ExternFn, impl_annotations: &Option<String>) {
- if !out.header {
- if let Some(annotation) = impl_annotations {
- write!(out, "{} ", annotation);
- }
+ if let Some(annotation) = impl_annotations {
+ write!(out, "{} ", annotation);
}
if efn.throws {
write!(out, "::rust::Str::Repr ");