Skip to content

Commit

Permalink
fix(rust): suppress safety warning on generate macro (#922) (#926)
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Aman <bob.aman@bulwark.security>
  • Loading branch information
sporkmonger committed Apr 10, 2024
1 parent 63bf2a9 commit 17c4589
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ pub struct Resource<T: WasmResource> {
/// drop a resource.
///
/// This generally is implemented by generated code, not user-facing code.
#[allow(clippy::missing_safety_doc)]
pub unsafe trait WasmResource {
/// Invokes the `[resource-drop]...` intrinsic.
unsafe fn drop(handle: u32);
Expand Down

0 comments on commit 17c4589

Please sign in to comment.