Skip to content

Commit

Permalink
style(body): change tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Sep 8, 2017
1 parent 112efb5 commit 3dc2228
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/http/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ impl From<&'static [u8]> for Body {
impl From<Cow<'static, [u8]>> for Body {
#[inline]
fn from (cow: Cow<'static, [u8]>) -> Body {
if let Cow::Borrowed(value) = cow {
Body::from(value)
} else {
Body::from(cow.to_owned())
}
if let Cow::Borrowed(value) = cow {
Body::from(value)
} else {
Body::from(cow.to_owned())
}
}
}

Expand All @@ -115,19 +115,19 @@ impl From<String> for Body {

impl From<&'static str> for Body {
#[inline]
fn from (slice: &'static str) -> Body {
fn from(slice: &'static str) -> Body {
Body(TokioBody::from(Chunk::from(slice.as_bytes())))
}
}

impl From<Cow<'static, str>> for Body {
#[inline]
fn from (cow: Cow<'static, str>) -> Body {
if let Cow::Borrowed(value) = cow {
Body::from(value)
} else {
Body::from(cow.to_owned())
}
fn from(cow: Cow<'static, str>) -> Body {
if let Cow::Borrowed(value) = cow {
Body::from(value)
} else {
Body::from(cow.to_owned())
}
}
}

Expand Down

0 comments on commit 3dc2228

Please sign in to comment.