forked from gentoo-utils/gentoo-utils
make depend::Expr generic over Parseables
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use gentoo_utils::{
|
||||
Parseable,
|
||||
atom::Atom,
|
||||
depend::{self, Expr},
|
||||
};
|
||||
use mon::{Parser, eof, input::InputIter, tag, whitespace1};
|
||||
@@ -17,7 +18,7 @@ fn parse_md5_cache() {
|
||||
if line.starts_with("DEPEND=") {
|
||||
eprintln!("{line}");
|
||||
eprintln!();
|
||||
Expr::parser()
|
||||
Expr::<Atom>::parser()
|
||||
.separated_list(whitespace1(), 0..)
|
||||
.ignore()
|
||||
.or(eof())
|
||||
|
||||
Reference in New Issue
Block a user