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 1
1
/target
2
2
** /* .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;
4
4
use futures:: future:: { self , Future } ;
5
5
use futures:: stream:: Stream ;
6
6
use reqwest as r;
7
- use reqwest:: r#async as ra;
7
+ use reqwest:: { r#async as ra, Url } ;
8
8
9
9
/*
10
10
* TODO remove debug output
@@ -126,10 +126,8 @@ impl Client {
126
126
///
127
127
/// [`ClientBuilder`]: struct.ClientBuilder.html
128
128
/// [`.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) ) ) ?;
133
131
Ok ( ClientBuilder {
134
132
url : url,
135
133
headers : r:: header:: HeaderMap :: new ( ) ,
You can’t perform that action at this time.
0 commit comments