@@ -166,27 +166,25 @@ extern crate serde;
166166
167167use crate :: host:: HostInternal ;
168168
169- use crate :: parser:: {
170- to_u32, Context , Parser , SchemeType , USERINFO ,
171- } ;
172- use percent_encoding:: utf8_percent_encode;
173- use core:: borrow:: Borrow ;
174- use core:: fmt:: Write ;
175- #[ cfg( feature = "std" ) ]
176- #[ cfg( any( unix, windows, target_os = "redox" , target_os = "wasi" ) ) ]
177- use std:: io;
178- use core:: { cmp, fmt, hash, mem} ;
179169use crate :: net:: IpAddr ;
180170#[ cfg( feature = "std" ) ]
181171#[ cfg( any( unix, windows, target_os = "redox" , target_os = "wasi" ) ) ]
182172use crate :: net:: { SocketAddr , ToSocketAddrs } ;
183- use core:: ops:: { Range , RangeFrom , RangeTo } ;
173+ use crate :: parser:: { to_u32, Context , Parser , SchemeType , USERINFO } ;
174+ use alloc:: borrow:: ToOwned ;
184175use alloc:: str;
185176use alloc:: string:: { String , ToString } ;
186- use alloc:: borrow:: ToOwned ;
177+ use core:: borrow:: Borrow ;
178+ use core:: convert:: TryFrom ;
179+ use core:: fmt:: Write ;
180+ use core:: ops:: { Range , RangeFrom , RangeTo } ;
181+ use core:: { cmp, fmt, hash, mem} ;
182+ use percent_encoding:: utf8_percent_encode;
183+ #[ cfg( feature = "std" ) ]
184+ #[ cfg( any( unix, windows, target_os = "redox" , target_os = "wasi" ) ) ]
185+ use std:: io;
187186#[ cfg( feature = "std" ) ]
188187use std:: path:: { Path , PathBuf } ;
189- use core:: convert:: TryFrom ;
190188
191189/// `std` version of `net`
192190#[ cfg( feature = "std" ) ]
0 commit comments