refactor(multiple): Clippy run

This commit is contained in:
leonardo.yvens
2016-06-04 11:21:53 -03:00
parent 0c847f7898
commit d4a095d75c
16 changed files with 50 additions and 71 deletions

View File

@@ -6,10 +6,10 @@ use net::Transport;
use super::{Handler, request, response};
/// A MessageHandler for a Server.
/// A `MessageHandler` for a Server.
///
/// This should be really thin glue between http::MessageHandler and
/// server::Handler, but largely just providing the proper types one
/// This should be really thin glue between `http::MessageHandler` and
/// `server::Handler`, but largely just providing the proper types one
/// would expect in a Server Handler.
pub struct Message<H: Handler<T>, T: Transport> {
handler: H,
@@ -55,4 +55,3 @@ impl<H: Handler<T>, T: Transport> http::MessageHandler<T> for Message<H, T> {
self.handler.on_remove(transport);
}
}

View File

@@ -43,7 +43,7 @@ impl<'a> Response<'a> {
}
/// Creates a new Response that can be used to write to a network stream.
pub fn new<'a>(head: &'a mut http::MessageHead<StatusCode>) -> Response<'a> {
pub fn new(head: &mut http::MessageHead<StatusCode>) -> Response {
Response {
head: head
}