style(header): clean up extra whitespace in ContentLength file

This commit is contained in:
Sean McArthur
2017-05-25 10:34:35 -07:00
parent 9688c8b8ae
commit e69cd1ab3a

View File

@@ -4,7 +4,7 @@ use header::{Header, Raw, parsing};
/// `Content-Length` header, defined in
/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2)
///
///
/// When a message does not have a `Transfer-Encoding` header field, a
/// Content-Length header field can provide the anticipated size, as a
/// 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, the Content-Length indicates the size of the selected
/// representation.
///
///
/// # ABNF
/// ```plain
/// Content-Length = 1*DIGIT
/// ```
///
///
/// # Example values
/// * `3495`
///
///
/// # Example
/// ```
/// use hyper::header::{Headers, ContentLength};
///
///
/// let mut headers = Headers::new();
/// headers.set(ContentLength(1024u64));
/// ```
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ContentLength(pub u64);
//static NAME: &'static str = "Content-Length";
impl Header for ContentLength {
#[inline]
fn header_name() -> &'static str {