Ran fmt
This commit is contained in:
@@ -8,8 +8,6 @@ pub fn parser() -> impl Parser<Token, ast::UntypedDefinition, Error = ParseError
|
||||
crate::parser::definition::test_like::parser(Token::Test)
|
||||
}
|
||||
|
||||
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::assert_definition;
|
||||
|
||||
@@ -36,8 +36,8 @@ pub fn parser(keyword: Token) -> impl Parser<Token, ast::UntypedDefinition, Erro
|
||||
.or_not()
|
||||
.delimited_by(just(Token::LeftBrace), just(Token::RightBrace)),
|
||||
)
|
||||
.map_with_span(move |((((name, arguments), fail), span_end), body), span| {
|
||||
match keyword {
|
||||
.map_with_span(
|
||||
move |((((name, arguments), fail), span_end), body), span| match keyword {
|
||||
Token::Test => ast::UntypedDefinition::Test(ast::Function {
|
||||
arguments,
|
||||
body: body.unwrap_or_else(|| UntypedExpr::todo(None, span)),
|
||||
@@ -63,8 +63,8 @@ pub fn parser(keyword: Token) -> impl Parser<Token, ast::UntypedDefinition, Erro
|
||||
on_test_failure: fail.unwrap_or(OnTestFailure::FailImmediately),
|
||||
}),
|
||||
_ => unreachable!("Only Test and Benchmark tokens are supported"),
|
||||
}
|
||||
})
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
pub fn via() -> impl Parser<Token, ast::UntypedArgVia, Error = ParseError> {
|
||||
@@ -140,4 +140,4 @@ pub fn fuzzer<'a>() -> impl Parser<Token, UntypedExpr, Error = ParseError> + 'a
|
||||
Chain::TupleIndex(index, span) => expr.tuple_index(index, span),
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user