Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Mar 2, 2023
1 parent 46046ff commit 0954f3e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/parser/impl_parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
use nom::{
branch::alt,
bytes::complete::tag,
character::complete::{alphanumeric1, digit1, satisfy},
character::complete::char,
character::complete::{alphanumeric1, digit1, satisfy},
combinator::{all_consuming, map, opt, recognize},
sequence::{pair, tuple},
IResult, AsChar,
AsChar, IResult,
};

use crate::parser::ds::*;
Expand Down Expand Up @@ -874,7 +874,7 @@ mod test {
mod grammar_full {
use nom::combinator::all_consuming;

use crate::parser::{Accession, impl_parse::Parseable};
use crate::parser::{impl_parse::Parseable, Accession};

#[test]
fn parser_grammar() -> Result<(), anyhow::Error> {
Expand All @@ -889,7 +889,7 @@ mod test {
for row in rdr.records() {
let row = row?;
if row.get(0) == Some("Func") {
continue; // skip header
continue; // skip header
}

// setup input
Expand All @@ -901,10 +901,7 @@ mod test {
};
let is_valid = row.get(2).unwrap().to_lowercase() == "true";

for (input, expected) in inputs
.into_iter()
.zip(expected_results.into_iter())
{
for (input, expected) in inputs.into_iter().zip(expected_results.into_iter()) {
let func = row.get(0).unwrap();
match func {
"accn" => {
Expand All @@ -918,7 +915,7 @@ mod test {
assert!(res.is_err());
}
}
_ => panic!("invalid func = {}", func)
_ => panic!("invalid func = {}", func),
}
}
}
Expand Down

0 comments on commit 0954f3e

Please sign in to comment.