From 39dec5d5b4d8f9831f85295b86a4a12557216074 Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 10 Oct 2024 16:12:57 +0800 Subject: [PATCH] Change to close_resource and take &self --- plugins/store/src/store.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/store/src/store.rs b/plugins/store/src/store.rs index ccdb8487..f988a111 100644 --- a/plugins/store/src/store.rs +++ b/plugins/store/src/store.rs @@ -530,10 +530,8 @@ impl Store { self.store.lock().unwrap().save() } - /// Removes the store from the resource table, - /// this doesn't remove other references of the same store held by you, - /// and the store is only truely closed once all reference held by you are also dropped - pub fn close_store(self) { + /// Removes the store from the resource table + pub fn close_resource(&self) { let store = self.store.lock().unwrap(); let app = store.app.clone(); let state = app.state::();