Clear all clippy warnings
Additionally, HttpServer::new_from_fd has been marked as unsafe, since the correctness of the unsafe call within the function relies on the caller upholding an invariant Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
This commit is contained in:
committed by
Alexandra Iordache
parent
d2caafab0e
commit
43d5a1d4b0
@@ -12,7 +12,7 @@ use crate::Method;
|
||||
///
|
||||
/// The status code is defined as specified in the
|
||||
/// [RFC](https://tools.ietf.org/html/rfc7231#section-6).
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum StatusCode {
|
||||
/// 100, Continue
|
||||
Continue,
|
||||
@@ -84,7 +84,7 @@ impl StatusLine {
|
||||
/// Wrapper over the list of headers associated with a HTTP Response.
|
||||
/// When creating a ResponseHeaders object, the content type is initialized to `text/plain`.
|
||||
/// The content type can be updated with a call to `set_content_type`.
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub struct ResponseHeaders {
|
||||
content_length: i32,
|
||||
content_type: MediaType,
|
||||
|
||||
Reference in New Issue
Block a user