From 7cf9ccab995d0153958ac0425e8195e37ee2aaaf Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Wed, 5 Nov 2014 12:32:13 -0500 Subject: [PATCH] Remove parse_bytes to work with latest rustc --- src/url.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: ':' | '/' | '?' | '#' | '[' | ']' | '@' |