From 835d20b62f5370fe65f6deffab1e4a12751d7a65 Mon Sep 17 00:00:00 2001 From: Rute Figueiredo Date: Fri, 30 Aug 2024 11:31:24 +0100 Subject: [PATCH] formatting --- src/parser/mod.rs | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 56959c97..9acc586b 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -118,34 +118,22 @@ mod test { let signal_decl = lang::StatementsParser::new() .parse(&debug_sym_ref_factory, "signal a: field, b, c;") .unwrap(); - assert_eq!( - format!("{:?}", signal_decl), - r#"[signal a, b, c;]"# - ); + assert_eq!(format!("{:?}", signal_decl), r#"[signal a, b, c;]"#); let typed_signal_decl = lang::StatementsParser::new() .parse(&debug_sym_ref_factory, "signal a: field;") .unwrap(); - assert_eq!( - format!("{:?}", typed_signal_decl), - r#"[signal a;]"# - ); + assert_eq!(format!("{:?}", typed_signal_decl), r#"[signal a;]"#); let var_decl = lang::StatementsParser::new() .parse(&debug_sym_ref_factory, "var a: field, b, c;") .unwrap(); - assert_eq!( - format!("{:?}", var_decl), - r#"[var a, b, c;]"# - ); + assert_eq!(format!("{:?}", var_decl), r#"[var a, b, c;]"#); let signal_array_decl = lang::StatementsParser::new() .parse(&debug_sym_ref_factory, "signal a[7];") .unwrap(); - assert_eq!( - format!("{:?}", signal_array_decl), - r#"[signal a[7];]"# - ); + assert_eq!(format!("{:?}", signal_array_decl), r#"[signal a[7];]"#); let signal_typed_array_decl = lang::StatementsParser::new() .parse(&debug_sym_ref_factory, "signal a: field[7];") @@ -158,10 +146,7 @@ mod test { let var_array_decl = lang::StatementsParser::new() .parse(&debug_sym_ref_factory, "var a[7];") .unwrap(); - assert_eq!( - format!("{:?}", var_array_decl), - r#"[var a[7];]"# - ); + assert_eq!(format!("{:?}", var_array_decl), r#"[var a[7];]"#); } #[test]