From 87d5d6a3b83b3214477874c1734fca42a6c80288 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Tue, 9 Jun 2026 16:11:45 +0800 Subject: Remove misleading SAFETY comment in LazyRes force_init --- mingling_core/src/asset/lazy_resource.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mingling_core') diff --git a/mingling_core/src/asset/lazy_resource.rs b/mingling_core/src/asset/lazy_resource.rs index 8cf8d89..6f1bd81 100644 --- a/mingling_core/src/asset/lazy_resource.rs +++ b/mingling_core/src/asset/lazy_resource.rs @@ -88,8 +88,8 @@ impl LazyRes { fn force_init(&mut self) -> &mut LazyInner { if matches!(&self.inner, LazyInner::Uninit(_, _)) { - // Replace with a temporary poison value so we can move the real factory out. - // SAFETY: if the factory panics, the poison value's `unreachable!()` will + // Replace with a temporary poison value so the real factory can be moved out. + // If the factory panics, the poison value's `unreachable!()` will // catch any subsequent access. let poisoned = LazyInner::Uninit( Box::new(|| unreachable!("LazyRes poisoned during initialization")), -- cgit