remove double negotiation

This commit is contained in:
philipp 2023-11-06 10:57:19 +01:00
parent fdbabb8b9d
commit 385ab4e044
2 changed files with 2 additions and 3 deletions

View File

@ -55,9 +55,7 @@ pub(crate) fn parse(overview_id: usize, builder: &mut LawBuilder) -> Result<(),
Box::new(iter)
};
for par in boxed_iter {
// skip bc. first one is
// always not relevant for
// me :-)
// skip bc. first one is never relevant for me :-)
if !crate::par::parse(&par, builder).unwrap() {
break;
}

View File

@ -657,6 +657,7 @@ mod tests {
println!("{:#?}", risdok.as_ref().err());
}
assert!(risdok.is_ok());
let expected = LawBuilder {
name: "no-headers".into(),
classifiers: vec![