aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/matches.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-06-21 12:19:54 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-06-21 12:19:54 +0200
commit31b90ccc657a5468de6bdffea8d309f502cd0d07 (patch)
tree5b5689f15dfb2cdcc27eca10ef39212dd18db4f2 /testing/tests/matches.rs
parentf05a924c49afb537b624cfe3cbef3a95b13759a2 (diff)
downloadaskama-31b90ccc657a5468de6bdffea8d309f502cd0d07.tar.gz
askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.tar.bz2
askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.zip
Fix formatting with cargo fmt
Diffstat (limited to 'testing/tests/matches.rs')
-rw-r--r--testing/tests/matches.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/tests/matches.rs b/testing/tests/matches.rs
index 9fae70c..9ea1d72 100644
--- a/testing/tests/matches.rs
+++ b/testing/tests/matches.rs
@@ -15,7 +15,6 @@ struct MatchOptRefTemplate<'a> {
item: &'a Option<&'a str>,
}
-
#[test]
fn test_match_option() {
let s = MatchOptTemplate { item: Some("foo") };
@@ -79,7 +78,9 @@ struct MatchCustomEnumTemplate {
#[test]
fn test_match_custom_enum() {
- let s = MatchCustomEnumTemplate { color: Color::Rgb(160, 0, 255) };
+ let s = MatchCustomEnumTemplate {
+ color: Color::Rgb(160, 0, 255),
+ };
assert_eq!(s.render().unwrap(), "\n\nColorful: #A000FF\n");
}