aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mingling_core/src/asset/lazy_resource.rs6
-rw-r--r--mingling_core/src/comp.rs2
2 files changed, 4 insertions, 4 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!(),
}
}
}
diff --git a/mingling_core/src/comp.rs b/mingling_core/src/comp.rs
index 7312a06..f2e50c8 100644
--- a/mingling_core/src/comp.rs
+++ b/mingling_core/src/comp.rs
@@ -183,7 +183,7 @@ impl CompletionHelper {
let default = default_completion::<P>(ctx);
match fallback {
Suggest::FileCompletion => default,
- _ => fallback.combine(default),
+ Suggest::Suggest(_) => fallback.combine(default),
}
}
},