diff --git a/src/parser/mod.rs b/src/parser/mod.rs index b2297a3c..935fef89 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -1063,7 +1063,6 @@ peg::parser! { mod tests { use super::*; - #[test] fn nat_literal() { assert_eq!(descend::nat("0"), Ok(Nat::Lit(0)), "cannot parse 0"); @@ -2471,12 +2470,18 @@ mod tests { #[test] fn empty_annotate_snippet() { let source = SourceCode::new("fn\n".to_string()); - assert!(parse(&source).is_err(), "Expected a parsing error and specifically not a panic!"); + assert!( + parse(&source).is_err(), + "Expected a parsing error and specifically not a panic!" + ); } #[test] fn empty_annotate_snippet2() { let source = SourceCode::new("fn ".to_string()); - assert!(parse(&source).is_err(), "Expected a parsing error and specifically not a panic!"); + assert!( + parse(&source).is_err(), + "Expected a parsing error and specifically not a panic!" + ); } }