chore(rustup): fix std::env changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#![feature(env, os, io)]
|
||||
#![feature(env, io)]
|
||||
extern crate hyper;
|
||||
|
||||
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 res = match client.get(url).send() {
|
||||
let mut res = match client.get(&*url).send() {
|
||||
Ok(res) => res,
|
||||
Err(err) => panic!("Failed to connect: {:?}", err)
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
slicing_syntax, box_syntax)]
|
||||
#![deny(missing_docs)]
|
||||
#![cfg_attr(test, deny(warnings))]
|
||||
#![cfg_attr(test, feature(test))]
|
||||
#![cfg_attr(test, feature(alloc, test))]
|
||||
|
||||
//! # Hyper
|
||||
//! Hyper is a fast, modern HTTP implementation written in and for Rust. It
|
||||
|
||||
Reference in New Issue
Block a user