File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111use std:: fmt;
1212use std:: str:: FromStr ;
13- use std:: old_path:: BytesContainer ;
1413use std:: num;
1514use std:: str;
1615
@@ -112,13 +111,13 @@ impl UserInfo {
112111
113112pub type DecodeResult < T > = Result < T , String > ;
114113
115- pub fn decode_component < T : BytesContainer > ( container : T ) -> DecodeResult < String > {
114+ pub fn decode_component ( container : & str ) -> DecodeResult < String > {
116115 decode_inner ( container, false )
117116}
118117
119- fn decode_inner < T : BytesContainer > ( c : T , full_url : bool ) -> DecodeResult < String > {
118+ fn decode_inner ( c : & str , full_url : bool ) -> DecodeResult < String > {
120119 let mut out = String :: new ( ) ;
121- let mut iter = c. container_as_bytes ( ) . iter ( ) . map ( |& b| b) ;
120+ let mut iter = c. as_bytes ( ) . iter ( ) . map ( |& b| b) ;
122121
123122 loop {
124123 match iter. next ( ) {
You can’t perform that action at this time.
0 commit comments