From 2e7b980a342b5b783a12031b7ddbdc3dfbcb02b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 26 Nov 2023 16:21:10 +0100 Subject: [PATCH] cargo fmt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/element.rs | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/src/element.rs b/src/element.rs index 2f41548..f2965b1 100644 --- a/src/element.rs +++ b/src/element.rs @@ -715,9 +715,7 @@ mod tests { let elem3: Element = "\n" .parse() .unwrap(); - let elem4: Element = "\t" - .parse() - .unwrap(); + let elem4: Element = "\t".parse().unwrap(); let scan2 = ScanElement::new(elem3); assert_eq!(scan2, elem4); @@ -725,9 +723,7 @@ mod tests { let elem5: Element = " \n" .parse() .unwrap(); - let elem6: Element = "\t" - .parse() - .unwrap(); + let elem6: Element = "\t".parse().unwrap(); let scan3 = ScanElement::new(elem5); assert_eq!(scan3, elem6); @@ -748,9 +744,7 @@ mod tests { let elem3: Element = "\n" .parse() .unwrap(); - let elem4: Element = "\t" - .parse() - .unwrap(); + let elem4: Element = "\t".parse().unwrap(); let scan2 = ScanElement::new(elem3); assert_eq!(scan2, elem4); @@ -758,9 +752,7 @@ mod tests { let elem5: Element = " \n" .parse() .unwrap(); - let elem6: Element = "\t" - .parse() - .unwrap(); + let elem6: Element = "\t".parse().unwrap(); let scan3 = ScanElement::new(elem5); assert_eq!(scan3, elem6); @@ -771,9 +763,7 @@ mod tests { let elem1: Element = "abc" .parse() .unwrap(); - let elem2: Element = " abc " - .parse() - .unwrap(); + let elem2: Element = " abc ".parse().unwrap(); let scan1 = ScanElement::new(elem1); assert_ne!(scan1, elem2); @@ -781,9 +771,7 @@ mod tests { let elem3: Element = " " .parse() .unwrap(); - let elem4: Element = "" - .parse() - .unwrap(); + let elem4: Element = "".parse().unwrap(); let scan2 = ScanElement::new(elem3); assert_ne!(scan2, elem4); @@ -794,9 +782,7 @@ mod tests { let elem1: Element = "abc" .parse() .unwrap(); - let elem2: Element = " abc " - .parse() - .unwrap(); + let elem2: Element = " abc ".parse().unwrap(); let scan1 = ScanElement::new(elem1); assert_ne!(scan1, elem2); @@ -804,9 +790,7 @@ mod tests { let elem3: Element = " " .parse() .unwrap(); - let elem4: Element = "" - .parse() - .unwrap(); + let elem4: Element = "".parse().unwrap(); let scan2 = ScanElement::new(elem3); assert_ne!(scan2, elem4);