aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-07-04 22:40:34 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-07-04 22:40:34 +0200
commit216e7de7b0401db59e470253726f86b0f380323a (patch)
treed53b235de26ad97299febf4a355e46aa678220d4 /src
parentd782334d31e2925432677d1e05d000f350aa925d (diff)
downloadrust-zotapi-216e7de7b0401db59e470253726f86b0f380323a.tar.gz
rust-zotapi-216e7de7b0401db59e470253726f86b0f380323a.tar.bz2
rust-zotapi-216e7de7b0401db59e470253726f86b0f380323a.zip
Fix tests an update for newer rust.
Diffstat (limited to 'src')
-rw-r--r--src/item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/item.rs b/src/item.rs
index 361b327..7c5935d 100644
--- a/src/item.rs
+++ b/src/item.rs
@@ -165,7 +165,7 @@ fn add_group_to_list_of_groups_allowed() {
item.group_allow("test");
match item.data.get("groups_allow") {
Some(ItemData::List(v)) => assert_eq!(v.len(), 1),
- Some(ItemData::Value(s)) => assert!(false, format!("Expected a list, found value: {}", s)),
+ Some(ItemData::Value(s)) => assert!(false, "Expected a list, found value: {}", s),
None => assert!(false, "List not found!"),
};
}