From 13b53f3e89bcd6d33a534403162d1b09502bec70 Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 24 Sep 2020 18:58:49 +0200 Subject: even more serde stuff --- src/item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/item.rs') diff --git a/src/item.rs b/src/item.rs index 4fdb4b8..2e14606 100644 --- a/src/item.rs +++ b/src/item.rs @@ -50,7 +50,7 @@ mod tests { use serde_json::json; #[test] - fn equip_from_json() { + fn equip_deserialise() { assert_eq!( ItemAction::deserialize(&json!({"equip": {"slot": "hand", "stats": {"strength": 10}}})).unwrap(), ItemAction::Equip(Equippable {slot: Slot::Hand, stats: hashmap!(Stat::Strength => 10), sprite: Option::None}) -- cgit