chore: Fix the build

This commit is contained in:
J H
2024-03-15 13:31:44 -06:00
parent 1a396cfc7b
commit 18a20407f6
4 changed files with 6 additions and 6 deletions

View File

@@ -875,16 +875,18 @@ enum DependencyKind {
#[serde(rename_all = "camelCase")]
#[ts(export)]
struct DependencyRequirement {
#[ts(type = "string")]
id: PackageId,
kind: DependencyKind,
#[serde(default)]
#[ts(type = "string[]")]
health_checks: BTreeSet<HealthCheckId>,
}
// filebrowser:exists,bitcoind:running:foo+bar+baz
impl FromStr for DependencyRequirement {
type Err = Error;
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s.split_once(":") {
match s.split_once(':') {
Some((id, "e")) | Some((id, "exists")) => Ok(Self {
id: id.parse()?,
kind: DependencyKind::Exists,