We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc03394 commit c61f061Copy full SHA for c61f061
src/lib.rs
@@ -120,8 +120,7 @@ impl<'a> RequestParams<'a> for &'a (Request + 'a) {
120
mod tests {
121
extern crate semver;
122
use std::collections::HashMap;
123
- use std::error::Error;
124
- use std::old_io::MemReader;
+ use std::old_io::{MemReader, IoError};
125
use std::old_io::net::ip::IpAddr;
126
127
use {RouteBuilder, RequestParams};
@@ -203,7 +202,7 @@ mod tests {
203
202
}
204
205
fn test_handler(req: &mut conduit::Request)
206
- -> Result<conduit::Response, Box<Error+Send>> {
+ -> Result<conduit::Response, IoError> {
207
let mut res = vec!();
208
res.push(req.params()["id"].clone());
209
res.push(format!("{:?}", req.method()));
0 commit comments