remove double negotiation
This commit is contained in:
parent
fdbabb8b9d
commit
385ab4e044
@ -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;
|
||||
}
|
||||
|
@ -657,6 +657,7 @@ mod tests {
|
||||
println!("{:#?}", risdok.as_ref().err());
|
||||
}
|
||||
assert!(risdok.is_ok());
|
||||
|
||||
let expected = LawBuilder {
|
||||
name: "no-headers".into(),
|
||||
classifiers: vec![
|
||||
|
Loading…
Reference in New Issue
Block a user