diff options
Diffstat (limited to 'src/ebuild/repo/mod.rs')
| -rw-r--r-- | src/ebuild/repo/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ebuild/repo/mod.rs b/src/ebuild/repo/mod.rs index abf9569..ae2113c 100644 --- a/src/ebuild/repo/mod.rs +++ b/src/ebuild/repo/mod.rs @@ -5,7 +5,7 @@ use std::{ use get::Get; -use mon::{Parser, ParserIter, input::InputIter, tag, whitespace1}; +use mon::{Parser, ParserIter, ascii_whitespace1, input::InputIter, tag}; use crate::{ Parseable, @@ -208,7 +208,7 @@ fn read_src_uri(input: &str) -> Option<Result<Vec<Depend<SrcUri>>, Error>> { .find_map(|line| line.strip_prefix("SRC_URI="))?; match Depend::<SrcUri>::parser() - .separated_by(whitespace1()) + .separated_by(ascii_whitespace1()) .many() .parse_finished(InputIter::new(line)) { @@ -232,7 +232,7 @@ fn read_inherit(input: &str) -> Option<Result<Vec<Eclass>, Error>> { .find_map(|line| line.strip_prefix("INHERIT="))?; match Eclass::parser() - .separated_by(whitespace1()) + .separated_by(ascii_whitespace1()) .many() .parse_finished(InputIter::new(line)) { @@ -245,7 +245,7 @@ fn read_iuse(input: &str) -> Option<Result<Vec<IUseFlag>, Error>> { let line = input.lines().find_map(|line| line.strip_prefix("IUSE="))?; match IUseFlag::parser() - .separated_by(whitespace1()) + .separated_by(ascii_whitespace1()) .many() .parse_finished(InputIter::new(line)) { @@ -260,7 +260,7 @@ fn read_license(input: &str) -> Option<Result<Vec<Depend<License>>, Error>> { .find_map(|line| line.strip_suffix("LICENSE="))?; match Depend::<License>::parser() - .separated_by(whitespace1()) + .separated_by(ascii_whitespace1()) .many() .parse_finished(InputIter::new(line)) { @@ -309,7 +309,7 @@ fn read_idepend(input: &str) -> Option<Result<Vec<Depend<Atom>>, Error>> { fn parse_depends(line: &str) -> Result<Vec<Depend<Atom>>, Error> { Depend::<Atom>::parser() - .separated_by(whitespace1()) + .separated_by(ascii_whitespace1()) .many() .parse_finished(InputIter::new(line)) .map_err(|_| Error::Parser(line.to_string())) |
