chore(rustup): fix std::env changes

This commit is contained in:
Sean McArthur
2015-02-13 11:19:19 -08:00
parent 2afa96c923
commit db83e0490b
2 changed files with 3 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
#![feature(env, os, io)] #![feature(env, io)]
extern crate hyper; extern crate hyper;
use std::env; use std::env;
@@ -16,17 +16,9 @@ fn main() {
} }
}; };
let url = match url.to_str() {
Some(url) => url,
None => {
println!("Url contains invalid unicode");
return;
}
};
let mut client = Client::new(); let mut client = Client::new();
let mut res = match client.get(url).send() { let mut res = match client.get(&*url).send() {
Ok(res) => res, Ok(res) => res,
Err(err) => panic!("Failed to connect: {:?}", err) Err(err) => panic!("Failed to connect: {:?}", err)
}; };

View File

@@ -2,7 +2,7 @@
slicing_syntax, box_syntax)] slicing_syntax, box_syntax)]
#![deny(missing_docs)] #![deny(missing_docs)]
#![cfg_attr(test, deny(warnings))] #![cfg_attr(test, deny(warnings))]
#![cfg_attr(test, feature(test))] #![cfg_attr(test, feature(alloc, test))]
//! # Hyper //! # Hyper
//! Hyper is a fast, modern HTTP implementation written in and for Rust. It //! Hyper is a fast, modern HTTP implementation written in and for Rust. It