Skip to content

Commit 587a413

Browse files
fix: wrap no_mangle attribute with unsafe for compilation
Co-Authored-By: ayush.suresh@dourolabs.xyz <byteSlayer31037@gmail.com>
1 parent 9f0c00a commit 587a413

File tree

1 file changed

+1
-1
lines changed
  • target_chains/stylus/contracts/wormhole/src

1 file changed

+1
-1
lines changed

target_chains/stylus/contracts/wormhole/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![cfg_attr(not(any(test, feature = "export-abi")), no_main)]
22

33
#[cfg(not(any(test, feature = "export-abi")))]
4-
#[no_mangle]
4+
#[unsafe(no_mangle)]
55
pub extern "C" fn main() {}
66

77
#[cfg(feature = "export-abi")]

0 commit comments

Comments
 (0)