micro_http: switch to rust edition 2018

Signed-off-by: Damien Stanton <damien.stanton@gmail.com>
Signed-off-by: YUAN LYU <lyuyuan92@gmail.com>
This commit is contained in:
Damien Stanton
2020-07-06 10:42:37 -04:00
committed by Adrian Catangiu
parent 88de0ed16b
commit a7f035b8c5
6 changed files with 25 additions and 25 deletions

View File

@@ -4,10 +4,9 @@
use std::str::from_utf8;
use crate::common::ascii::{CR, CRLF_LEN, LF, SP};
use crate::common::headers::Headers;
use crate::common::{Body, Method, Version};
pub use crate::common::RequestError;
use crate::common::{Body, Method, Version};
use crate::headers::Headers;
// This type represents the RequestLine raw parts: method, uri and version.
type RequestLineParts<'a> = (&'a [u8], &'a [u8], &'a [u8]);