diff --git a/src/version.rs b/src/version.rs index c6258921..02979f3a 100644 --- a/src/version.rs +++ b/src/version.rs @@ -46,9 +46,9 @@ mod tests { use compare_elements::NamespaceAwareCompare; #[test] - fn test_simple() { + fn simple() { let elem: Element = "xmpp-rs0.3.0".parse().unwrap(); - let version = Version::try_from(elem).unwrap(); + let version = VersionResult::try_from(elem).unwrap(); assert_eq!(version.name, String::from("xmpp-rs")); assert_eq!(version.version, String::from("0.3.0")); assert_eq!(version.os, None); @@ -56,7 +56,7 @@ mod tests { #[test] fn serialisation() { - let version = Version { + let version = VersionResult { name: String::from("xmpp-rs"), version: String::from("0.3.0"), os: None,