We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66d3ffb commit e607d44Copy full SHA for e607d44
1 file changed
src/url.rs
@@ -9,7 +9,6 @@
9
// except according to those terms.
10
use std::io::prelude::*;
11
use std::str::FromStr;
12
-use std::str;
13
use hex::FromHex;
14
15
pub struct Url {
@@ -133,8 +132,7 @@ fn decode_inner(c: &str, full_url: bool) -> DecodeResult<String> {
133
132
};
134
135
// Only decode some characters if full_url:
136
- match Vec::<u8>::from_hex(str::from_utf8(&bytes)
137
- .unwrap())
+ match Vec::<u8>::from_hex(&bytes)
138
.unwrap()[0] as char {
139
// gen-delims:
140
':' |
0 commit comments