style(header): clean up extra whitespace in ContentLength file
This commit is contained in:
		| @@ -4,7 +4,7 @@ use header::{Header, Raw, parsing}; | |||||||
|  |  | ||||||
| /// `Content-Length` header, defined in | /// `Content-Length` header, defined in | ||||||
| /// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2) | /// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2) | ||||||
| ///  | /// | ||||||
| /// When a message does not have a `Transfer-Encoding` header field, a | /// When a message does not have a `Transfer-Encoding` header field, a | ||||||
| /// Content-Length header field can provide the anticipated size, as a | /// Content-Length header field can provide the anticipated size, as a | ||||||
| /// decimal number of octets, for a potential payload body.  For messages | /// decimal number of octets, for a potential payload body.  For messages | ||||||
| @@ -13,27 +13,25 @@ use header::{Header, Raw, parsing}; | |||||||
| /// body (and message) ends.  For messages that do not include a payload | /// body (and message) ends.  For messages that do not include a payload | ||||||
| /// body, the Content-Length indicates the size of the selected | /// body, the Content-Length indicates the size of the selected | ||||||
| /// representation. | /// representation. | ||||||
| ///  | /// | ||||||
| /// # ABNF | /// # ABNF | ||||||
| /// ```plain | /// ```plain | ||||||
| /// Content-Length = 1*DIGIT | /// Content-Length = 1*DIGIT | ||||||
| /// ``` | /// ``` | ||||||
| ///  | /// | ||||||
| /// # Example values | /// # Example values | ||||||
| /// * `3495` | /// * `3495` | ||||||
| ///  | /// | ||||||
| /// # Example | /// # Example | ||||||
| /// ``` | /// ``` | ||||||
| /// use hyper::header::{Headers, ContentLength}; | /// use hyper::header::{Headers, ContentLength}; | ||||||
| ///  | /// | ||||||
| /// let mut headers = Headers::new(); | /// let mut headers = Headers::new(); | ||||||
| /// headers.set(ContentLength(1024u64)); | /// headers.set(ContentLength(1024u64)); | ||||||
| /// ``` | /// ``` | ||||||
| #[derive(Clone, Copy, Debug, PartialEq)] | #[derive(Clone, Copy, Debug, PartialEq)] | ||||||
| pub struct ContentLength(pub u64); | pub struct ContentLength(pub u64); | ||||||
|  |  | ||||||
| //static NAME: &'static str = "Content-Length"; |  | ||||||
|  |  | ||||||
| impl Header for ContentLength { | impl Header for ContentLength { | ||||||
|     #[inline] |     #[inline] | ||||||
|     fn header_name() -> &'static str { |     fn header_name() -> &'static str { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user