Skip to content

Commit db83e04

Browse files
committed
chore(rustup): fix std::env changes
1 parent 2afa96c commit db83e04

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

examples/client.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(env, os, io)]
1+
#![feature(env, io)]
22
extern crate hyper;
33

44
use std::env;
@@ -16,17 +16,9 @@ fn main() {
1616
}
1717
};
1818

19-
let url = match url.to_str() {
20-
Some(url) => url,
21-
None => {
22-
println!("Url contains invalid unicode");
23-
return;
24-
}
25-
};
26-
2719
let mut client = Client::new();
2820

29-
let mut res = match client.get(url).send() {
21+
let mut res = match client.get(&*url).send() {
3022
Ok(res) => res,
3123
Err(err) => panic!("Failed to connect: {:?}", err)
3224
};

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
slicing_syntax, box_syntax)]
33
#![deny(missing_docs)]
44
#![cfg_attr(test, deny(warnings))]
5-
#![cfg_attr(test, feature(test))]
5+
#![cfg_attr(test, feature(alloc, test))]
66

77
//! # Hyper
88
//! Hyper is a fast, modern HTTP implementation written in and for Rust. It

0 commit comments

Comments
 (0)