diff --git a/src/url.rs b/src/url.rs index 7181ca70..9eed9d62 100644 --- a/src/url.rs +++ b/src/url.rs @@ -9,7 +9,6 @@ // except according to those terms. use std::io::prelude::*; use std::str::FromStr; -use std::str; use hex::FromHex; pub struct Url { @@ -133,8 +132,7 @@ fn decode_inner(c: &str, full_url: bool) -> DecodeResult { }; // Only decode some characters if full_url: - match Vec::::from_hex(str::from_utf8(&bytes) - .unwrap()) + match Vec::::from_hex(&bytes) .unwrap()[0] as char { // gen-delims: ':' |