fix: build issues
build / version (push) Successful in 17s
build / build (x86_64-unknown-linux-musl) (push) Successful in 8m28s
build / build (aarch64-apple-darwin) (push) Successful in 8m29s
build / release (push) Successful in 29s

This commit is contained in:
johannes committed 2026-11-18 19:32:56 +01:00
1 parent 0626692591
commit da31c30fd0
1 file changed
+9 -2
+9 -2
View File
@@ -1688,9 +1688,16 @@ async fn submit(app: &mut App, mut line: String, c: &Ctx<'_>) {
let _ = tx.send(Ui::Compacted(r)); let _ = tx.send(Ui::Compacted(r));
}); });
} }
_ if let Some(Source::Skill(p)) = _ if matches!(
app.specs.iter().find(|s| s.name == c).map(|s| &s.source) => app.specs.iter().find(|s| s.name == c).map(|s| &s.source),
Some(Source::Skill(_))
) =>
{ {
let Some(Source::Skill(p)) =
app.specs.iter().find(|s| s.name == c).map(|s| &s.source)
else {
unreachable!()
};
match cmd::skill_prompt(c, p, arg) { match cmd::skill_prompt(c, p, arg) {
Ok(t) => line = t, Ok(t) => line = t,
Err(e) => app.t.push(Item::Error(format!("/{c}: {e}"))), Err(e) => app.t.push(Item::Error(format!("/{c}: {e}"))),