Skip to content

Commit

Permalink
Add must_use to Instance::recycle
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Aug 30, 2023
1 parent 8d8901f commit e3a17d1
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 e3a17d1

Please sign in to comment.