From ec2e873d73a3f820fe301b682cb100d07f44994b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 2 Jul 2018 09:28:02 +0200 Subject: Fix formatting with cargo fmt --- askama_shared/src/filters/mod.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'askama_shared') diff --git a/askama_shared/src/filters/mod.rs b/askama_shared/src/filters/mod.rs index f0a6090..03128e6 100644 --- a/askama_shared/src/filters/mod.rs +++ b/askama_shared/src/filters/mod.rs @@ -155,14 +155,23 @@ mod tests { #[test] fn test_linebreaks() { - assert_eq!(linebreaks(&"Foo\nBar Baz").unwrap(), "

Foo
Bar Baz

"); - assert_eq!(linebreaks(&"Foo\nBar\n\nBaz").unwrap(), "

Foo
Bar

Baz

"); + assert_eq!( + linebreaks(&"Foo\nBar Baz").unwrap(), + "

Foo
Bar Baz

" + ); + assert_eq!( + linebreaks(&"Foo\nBar\n\nBaz").unwrap(), + "

Foo
Bar

Baz

" + ); } #[test] fn test_linebreaksbr() { assert_eq!(linebreaksbr(&"Foo\nBar").unwrap(), "Foo
Bar"); - assert_eq!(linebreaksbr(&"Foo\nBar\n\nBaz").unwrap(), "Foo
Bar

Baz"); + assert_eq!( + linebreaksbr(&"Foo\nBar\n\nBaz").unwrap(), + "Foo
Bar

Baz" + ); } #[test] -- cgit