diff --git a/examples/interfaces/cw4/src/lib.rs b/examples/interfaces/cw4/src/lib.rs index eb4d5775..b4c4ecbb 100644 --- a/examples/interfaces/cw4/src/lib.rs +++ b/examples/interfaces/cw4/src/lib.rs @@ -69,7 +69,7 @@ pub trait Cw4 { #[cfg(test)] mod tests { - use cosmwasm_std::{from_json, to_json_binary, Empty}; + use cosmwasm_std::{from_json, to_json_binary}; use super::sv::*; @@ -90,8 +90,7 @@ mod tests { let original_msg = Cw4QueryMsg::Admin {}; let serialized_msg = to_json_binary(&original_msg).unwrap(); - let serialized_msg: Cw4QueryMsg = - from_json(serialized_msg).unwrap(); + let serialized_msg: Cw4QueryMsg = from_json(serialized_msg).unwrap(); assert_eq!(serialized_msg, original_msg); } @@ -110,8 +109,7 @@ mod tests { #[test] fn query_from_json() { - let deserialized: Cw4QueryMsg = - from_json(br#"{"admin": {}}"#).unwrap(); + let deserialized: Cw4QueryMsg = from_json(br#"{"admin": {}}"#).unwrap(); assert_eq!(deserialized, Cw4QueryMsg::Admin {}); }