From 8c1487f7f2b2c77eb4ef52e2a053b0ec2c16b987 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 13 Dec 2017 23:09:20 -0800 Subject: [PATCH] update tests --- src/helpers.rs | 4 ++-- src/server.rs | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/helpers.rs b/src/helpers.rs index b849ba5b0..f49e04cda 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -166,8 +166,8 @@ fn test_date_len() { #[test] fn test_date() { let mut buf1 = BytesMut::new(); - extend(&mut buf1); + date(&mut buf1); let mut buf2 = BytesMut::new(); - extend(&mut buf2); + date(&mut buf2); assert_eq!(buf1, buf2); } diff --git a/src/server.rs b/src/server.rs index 95e3ed2e5..4fdd6bd70 100644 --- a/src/server.rs +++ b/src/server.rs @@ -82,7 +82,7 @@ impl ServerSettings { /// An HTTP Server /// -/// `T` - async stream, anything that implements `AsyncRead` + `AsyncWrite`. +/// `T` - async stream, anything that implements `AsyncRead` + `AsyncWrite`. /// /// `A` - peer address /// @@ -121,7 +121,7 @@ impl HttpServer U: IntoIterator + 'static, V: IntoHttpHandler, { - /// Create new http server with vec of http handlers + /// Create new http server with application factory pub fn new(factory: F) -> Self where F: Sync + Send + 'static + Fn() -> U, { @@ -401,7 +401,6 @@ impl Handler, io::Error> for HttpServer } } - /// Http workers /// /// Worker accepts Socket objects via unbounded channel and start requests processing.