don't use Result::ok just to be able to use unwrap/unwrap_or

This commit is contained in:
Oliver Schneider
2015-03-20 08:19:13 +01:00
parent 0084f92302
commit b4a1e59146
21 changed files with 62 additions and 53 deletions

View File

@@ -617,7 +617,7 @@ mod tests {
unique_local: bool, global: bool,
u_link_local: bool, u_site_local: bool, u_global: bool,
m_scope: Option<Ipv6MulticastScope>) {
let ip: Ipv6Addr = str_addr.parse().ok().unwrap();
let ip: Ipv6Addr = str_addr.parse().unwrap();
assert_eq!(str_addr, ip.to_string());
assert_eq!(ip.is_unspecified(), unspec);