From e3a17d19ad4008db5d598c2603205ed3c5b9fa65 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 30 Aug 2023 12:19:32 +0200 Subject: [PATCH] Add must_use to Instance::recycle --- packages/vm/src/instance.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vm/src/instance.rs b/packages/vm/src/instance.rs index 73125edbc3..cd9efe65de 100644 --- a/packages/vm/src/instance.rs +++ b/packages/vm/src/instance.rs @@ -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> { let Instance { _inner, fe, store, ..