aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-07-02 09:28:02 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-07-02 09:28:02 +0200
commitec2e873d73a3f820fe301b682cb100d07f44994b (patch)
tree6472161d30e0f06e8db386ca46988ea884ac1641 /askama_shared
parent3fdf1c7a37a391b757cc4bf8554f1cbc0c1f609a (diff)
downloadaskama-ec2e873d73a3f820fe301b682cb100d07f44994b.tar.gz
askama-ec2e873d73a3f820fe301b682cb100d07f44994b.tar.bz2
askama-ec2e873d73a3f820fe301b682cb100d07f44994b.zip
Fix formatting with cargo fmt
Diffstat (limited to 'askama_shared')
-rw-r--r--askama_shared/src/filters/mod.rs15
1 files changed, 12 insertions, 3 deletions
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(), "<p>Foo<br/>Bar Baz</p>");
- assert_eq!(linebreaks(&"Foo\nBar\n\nBaz").unwrap(), "<p>Foo<br/>Bar</p><p>Baz</p>");
+ assert_eq!(
+ linebreaks(&"Foo\nBar Baz").unwrap(),
+ "<p>Foo<br/>Bar Baz</p>"
+ );
+ assert_eq!(
+ linebreaks(&"Foo\nBar\n\nBaz").unwrap(),
+ "<p>Foo<br/>Bar</p><p>Baz</p>"
+ );
}
#[test]
fn test_linebreaksbr() {
assert_eq!(linebreaksbr(&"Foo\nBar").unwrap(), "Foo<br/>Bar");
- assert_eq!(linebreaksbr(&"Foo\nBar\n\nBaz").unwrap(), "Foo<br/>Bar<br/><br/>Baz");
+ assert_eq!(
+ linebreaksbr(&"Foo\nBar\n\nBaz").unwrap(),
+ "Foo<br/>Bar<br/><br/>Baz"
+ );
}
#[test]