Skip to content

Commit af823b3

Browse files
committed
Move to std::io
1 parent 088f22e commit af823b3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "conduit"
4-
version = "0.6.6"
4+
version = "0.7.0"
55
authors = ["[email protected]",
66
"Alex Crichton <[email protected]>"]
77
description = "Common HTTP server interface"

src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
#![feature(core, old_io, alloc)]
1+
#![feature(core, io, alloc, net)]
22

33
extern crate semver;
44

5+
use std::io::prelude::*;
56
use std::collections::HashMap;
67
use std::error::Error;
7-
use std::old_io::net::ip::IpAddr;
8+
use std::net::IpAddr;
89

910
pub use self::typemap::TypeMap;
1011
mod typemap;
@@ -81,7 +82,7 @@ pub trait Request {
8182
fn headers<'a>(&'a self) -> &'a Headers;
8283

8384
/// A Reader for the body of the request
84-
fn body<'a>(&'a mut self) -> &'a mut Reader;
85+
fn body<'a>(&'a mut self) -> &'a mut Read;
8586

8687
/// A readable map of extensions
8788
fn extensions<'a>(&'a self) -> &'a Extensions;
@@ -110,7 +111,7 @@ pub struct Response {
110111
pub headers: HashMap<String, Vec<String>>,
111112

112113
/// A Writer for body of the response
113-
pub body: Box<Reader + Send>
114+
pub body: Box<Read + Send>
114115
}
115116

116117
/// A Handler takes a request and returns a response or an error.

0 commit comments

Comments
 (0)