fix(rustup): switch to unstable features
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#![allow(unstable)]
|
||||
#![feature(os, io)]
|
||||
extern crate hyper;
|
||||
|
||||
use std::os;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#![allow(unstable)]
|
||||
#![feature(io)]
|
||||
extern crate hyper;
|
||||
|
||||
use std::old_io::net::ip::Ipv4Addr;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#![allow(unstable)]
|
||||
#![feature(core, io)]
|
||||
extern crate hyper;
|
||||
#[macro_use] extern crate log;
|
||||
|
||||
@@ -21,7 +21,7 @@ macro_rules! try_return(
|
||||
|
||||
fn echo(mut req: Request, mut res: Response) {
|
||||
match req.uri {
|
||||
AbsolutePath(ref path) => match (&req.method, path.as_slice()) {
|
||||
AbsolutePath(ref path) => match (&req.method, &path[]) {
|
||||
(&Get, "/") | (&Get, "/echo") => {
|
||||
let out = b"Try POST /echo";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user