Skip to content

Commit 49713a1

Browse files
committed
cargo fmt
1 parent 85473db commit 49713a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/client.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ impl Client {
142142
/// [`ClientBuilder`]: struct.ClientBuilder.html
143143
/// [`.stream()`]: #method.stream
144144
pub fn for_str(str_url: &str) -> Result<ClientBuilder> {
145-
let url = Url::parse(str_url)
146-
.map_err(|e| Error::HttpRequest(Box::new(e)))?;
145+
let url = Url::parse(str_url).map_err(|e| Error::HttpRequest(Box::new(e)))?;
147146
Ok(ClientBuilder {
148147
url: url,
149148
headers: r::header::HeaderMap::new(),

0 commit comments

Comments
 (0)