diff --git a/src/url.rs b/src/url.rs index d508bfb92..fdec23a1a 100644 --- a/src/url.rs +++ b/src/url.rs @@ -11,8 +11,9 @@ use std::fmt; use std::from_str::FromStr; use std::hash; -use std::uint; use std::path::BytesContainer; +use std::num; +use std::str; #[deriving(Clone, PartialEq, Eq)] pub struct Url { @@ -158,7 +159,7 @@ fn decode_inner(c: T, full_url: bool) -> DecodeResult }; // Only decode some characters if full_url: - match uint::parse_bytes(bytes, 16u).unwrap() as u8 as char { + match num::from_str_radix::(str::from_utf8(bytes).unwrap(), 16u).unwrap() as u8 as char { // gen-delims: ':' | '/' | '?' | '#' | '[' | ']' | '@' |