We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4fe4e2 + 7cf9cca commit 8ffc761Copy full SHA for 8ffc761
src/url.rs
@@ -11,8 +11,9 @@
11
use std::fmt;
12
use std::from_str::FromStr;
13
use std::hash;
14
-use std::uint;
15
use std::path::BytesContainer;
+use std::num;
16
+use std::str;
17
18
#[deriving(Clone, PartialEq, Eq)]
19
pub struct Url {
@@ -158,7 +159,7 @@ fn decode_inner<T: BytesContainer>(c: T, full_url: bool) -> DecodeResult<String>
158
159
};
160
161
// Only decode some characters if full_url:
- match uint::parse_bytes(bytes, 16u).unwrap() as u8 as char {
162
+ match num::from_str_radix::<uint>(str::from_utf8(bytes).unwrap(), 16u).unwrap() as u8 as char {
163
// gen-delims:
164
':' | '/' | '?' | '#' | '[' | ']' | '@' |
165
0 commit comments