Run cargo fmt

The CI requirements for formatting have changed over the past 3 years

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
This commit is contained in:
Patrick Roy
2022-11-15 16:47:47 +00:00
committed by Alexandra Iordache
parent f3e710ce26
commit d2caafab0e
3 changed files with 17 additions and 12 deletions

View File

@@ -131,8 +131,12 @@ impl Headers {
/// use micro_http::Headers;
///
/// let mut request_header = Headers::default();
/// assert!(request_header.parse_header_line(b"Content-Length: 24").is_ok());
/// assert!(request_header.parse_header_line(b"Content-Length: 24: 2").is_err());
/// assert!(request_header
/// .parse_header_line(b"Content-Length: 24")
/// .is_ok());
/// assert!(request_header
/// .parse_header_line(b"Content-Length: 24: 2")
/// .is_err());
/// ```
pub fn parse_header_line(&mut self, header_line: &[u8]) -> Result<(), RequestError> {
// Headers must be ASCII, so also UTF-8 valid.