aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/asset
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-10 16:16:31 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-10 16:16:31 +0800
commit61b770ca958afa7e5eca4c50f5e06bdf3ed7a94a (patch)
treeddc08d59e2c4e3f3ecfc431204635e0965ba544b /mingling_core/src/asset
parentdeece0c28aa02b9a09d6e0a9912227330aa16a6f (diff)
refactor(asset): replace wildcard match with explicit variants
Diffstat (limited to 'mingling_core/src/asset')
-rw-r--r--mingling_core/src/asset/lazy_resource.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mingling_core/src/asset/lazy_resource.rs b/mingling_core/src/asset/lazy_resource.rs
index f2a5e3d..e8ec55b 100644
--- a/mingling_core/src/asset/lazy_resource.rs
+++ b/mingling_core/src/asset/lazy_resource.rs
@@ -110,7 +110,7 @@ impl<T: Send + Sync + 'static> LazyRes<T> {
self.force_init();
match &self.inner {
LazyInner::Init(t, _) => t,
- _ => unreachable!(),
+ LazyInner::Uninit(..) => unreachable!(),
}
}
@@ -120,7 +120,7 @@ impl<T: Send + Sync + 'static> LazyRes<T> {
self.force_init();
match &mut self.inner {
LazyInner::Init(t, _) => t,
- _ => unreachable!(),
+ LazyInner::Uninit(..) => unreachable!(),
}
}
@@ -178,7 +178,7 @@ impl<T: Send + Sync + 'static> LazyRes<T> {
LazyInner::Uninit(Box::new(|| unreachable!()), None),
) {
LazyInner::Init(t, _) => t,
- _ => unreachable!(),
+ LazyInner::Uninit(..) => unreachable!(),
}
}
}