File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11/target 
22** /* .rs.bk 
3- Cargo.lock 
3+ Cargo.lock 
4+ .idea 
5+ .DS_Store 
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use std::str::from_utf8;
44use  futures:: future:: { self ,  Future } ; 
55use  futures:: stream:: Stream ; 
66use  reqwest as  r; 
7- use  reqwest:: r#async as  ra; 
7+ use  reqwest:: { r#async as  ra,   Url } ; 
88
99/* 
1010 * TODO remove debug output 
@@ -126,10 +126,8 @@ impl Client {
126126/// 
127127/// [`ClientBuilder`]: struct.ClientBuilder.html 
128128/// [`.stream()`]: #method.stream 
129- pub  fn  for_url < U :  r:: IntoUrl > ( url :  U )  -> Result < ClientBuilder >  { 
130-         let  url = url
131-             . into_url ( ) 
132-             . map_err ( |e| Error :: HttpRequest ( Box :: new ( e) ) ) ?; 
129+ pub  fn  for_url ( url :  & str )  -> Result < ClientBuilder >  { 
130+         let  url = Url :: parse ( url) . map_err ( |e| Error :: HttpRequest ( Box :: new ( e) ) ) ?; 
133131        Ok ( ClientBuilder  { 
134132            url :  url, 
135133            headers :  r:: header:: HeaderMap :: new ( ) , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments