into_string to to_string, from_str to parse
This commit is contained in:
@@ -68,7 +68,7 @@ impl<L: NetworkListener<S, A>, S: NetworkStream, A: NetworkAcceptor<S>> Server<L
|
||||
let acceptor = try!(listener.listen());
|
||||
|
||||
let mut captured = acceptor.clone();
|
||||
let guard = Builder::new().name("hyper acceptor".into_string()).spawn(move || {
|
||||
let guard = Builder::new().name("hyper acceptor".to_string()).spawn(move || {
|
||||
let handler = Arc::new(handler);
|
||||
debug!("threads = {}", threads);
|
||||
let pool = TaskPool::new(threads);
|
||||
|
||||
@@ -92,7 +92,7 @@ mod tests {
|
||||
");
|
||||
|
||||
let mut req = Request::new(&mut stream, sock!("127.0.0.1:80")).unwrap();
|
||||
assert_eq!(req.read_to_string(), Ok("".into_string()));
|
||||
assert_eq!(req.read_to_string(), Ok("".to_string()));
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -105,7 +105,7 @@ mod tests {
|
||||
");
|
||||
|
||||
let mut req = Request::new(&mut stream, sock!("127.0.0.1:80")).unwrap();
|
||||
assert_eq!(req.read_to_string(), Ok("".into_string()));
|
||||
assert_eq!(req.read_to_string(), Ok("".to_string()));
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -118,6 +118,6 @@ mod tests {
|
||||
");
|
||||
|
||||
let mut req = Request::new(&mut stream, sock!("127.0.0.1:80")).unwrap();
|
||||
assert_eq!(req.read_to_string(), Ok("".into_string()));
|
||||
assert_eq!(req.read_to_string(), Ok("".to_string()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user