diff --git a/src/resources/resource_storage.rs b/src/resources/resource_storage.rs index c41aaf30..73f0e073 100644 --- a/src/resources/resource_storage.rs +++ b/src/resources/resource_storage.rs @@ -170,6 +170,10 @@ impl InMemoryResourceStorage { self.resources.insert(resource.name, resource_impl); Ok(()) } + + pub fn take_resources(&mut self) -> HashMap { + std::mem::take(&mut self.resources) + } } /// Formats `arg` such that it either is a JSON string, or is safe to insert within a JSON string,