aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-04-06 01:17:17 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-04-06 01:17:17 +0200
commit56d3e03f4812b872eccc9f0e1800a4fd978d7367 (patch)
treee95d2aad6202b4c2b4117b581a0b9fd6c568b6db /src
parentd51c665a6dbd6dd8b47c194ea391286a55efbcbd (diff)
Apply formatting to template
Diffstat (limited to 'src')
-rw-r--r--src/template.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/template.rs b/src/template.rs
index 9bc00dd..bba0bbb 100644
--- a/src/template.rs
+++ b/src/template.rs
@@ -379,7 +379,10 @@ mod tests {
if let Some(template) = parse(template) {
assert_eq!(template.tokens.len(), 3);
- assert_eq!(template.tokens.first(), Some(&Token::Text("My name is: ".to_string())));
+ assert_eq!(
+ template.tokens.first(),
+ Some(&Token::Text("My name is: ".to_string()))
+ );
assert_eq!(
template.tokens.get(1),
Some(&Token::DisplayDirective {
@@ -404,7 +407,10 @@ mod tests {
content: "{{ hello".to_string()
})
);
- assert_eq!(template.tokens.get(1), Some(&Token::Text(" }}".to_string())));
+ assert_eq!(
+ template.tokens.get(1),
+ Some(&Token::Text(" }}".to_string()))
+ );
} else {
panic!("Expected empty template to be parsed");
}