Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cpetig committed May 20, 2024
1 parent 064929d commit 25a8005
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ impl<'a> BridgeInterfaceGenerator<'a> {
let return_via_pointer = signature.retptr;
let is_export = matches!(variant, AbiVariant::GuestExport);
if is_export {
self.gen.src.push_str(r#"__attribute__ ((visibility ("default"))) "#);
self.gen
.src
.push_str(r#"__attribute__ ((visibility ("default"))) "#);
}
let res = if signature.results.is_empty() || return_via_pointer {
"void".into()
Expand Down

0 comments on commit 25a8005

Please sign in to comment.