take at least 1 usedep

This commit is contained in:
John Turner
2025-11-18 02:49:30 +00:00
parent 920ec36141
commit e2cc948803

View File

@@ -303,7 +303,7 @@ impl<'a> Parseable<'a, &'a str> for Atom {
let usedeps = || { let usedeps = || {
UseDep::parser() UseDep::parser()
.separated_by(tag(",")) .separated_by(tag(","))
.many() .at_least(1)
.delimited_by(tag("["), tag("]")) .delimited_by(tag("["), tag("]"))
.opt() .opt()
}; };
@@ -552,6 +552,7 @@ mod test {
"=kde-frameworks/kcodecs-6.19*86", "=kde-frameworks/kcodecs-6.19*86",
"=dev-ml/stdio-0.17*t:=[ocamlopt?]", "=dev-ml/stdio-0.17*t:=[ocamlopt?]",
">=dev-libs/libgee-0-8.5:0..8=", ">=dev-libs/libgee-0-8.5:0..8=",
"<dev-haskell/wai-3.3:=[]",
]; ];
for atom in atoms { for atom in atoms {