From 8128f2c94313b2e9b9d0b5c3350623f77bbb2521 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 2 Jul 2026 04:22:30 +0800 Subject: chore: run cargo fmt and rearrange re-exports in mingling --- mingling_core/src/asset/global_resource.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'mingling_core/src/asset') diff --git a/mingling_core/src/asset/global_resource.rs b/mingling_core/src/asset/global_resource.rs index 651655a..3d0af7b 100644 --- a/mingling_core/src/asset/global_resource.rs +++ b/mingling_core/src/asset/global_resource.rs @@ -80,9 +80,7 @@ where /// owned value. The caller must call [`__store_res`] to write back modifications. #[doc(hidden)] #[must_use] - pub fn __extract_res_mut( - &self, - ) -> Res { + pub fn __extract_res_mut(&self) -> Res { let Ok(mut guard) = self.resources.lock() else { return Res::res_default(); }; @@ -103,10 +101,7 @@ where /// /// Stores a modified resource value back into the global store. #[doc(hidden)] - pub fn __store_res( - &self, - val: Res, - ) { + pub fn __store_res(&self, val: Res) { if let Ok(mut guard) = self.resources.lock() { guard.insert(TypeId::of::(), Box::new(Arc::new(val))); } -- cgit