Skip to content

Commit

Permalink
Merge pull request #1846 from CosmWasm/must_use-recycle
Browse files Browse the repository at this point in the history
Add must_use to Instance::recycle
  • Loading branch information
webmaster128 authored Aug 30, 2023
2 parents f8b64d4 + e3a17d1 commit e4ca164
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vm/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ where

/// Decomposes this instance into its components.
/// External dependencies are returned for reuse, the rest is dropped.
#[must_use = "Calling ::recycle() without reusing the returned backend just drops the instance"]
pub fn recycle(self) -> Option<Backend<A, S, Q>> {
let Instance {
_inner, fe, store, ..
Expand Down

0 comments on commit e4ca164

Please sign in to comment.