Some final rustfmt changes.

This commit is contained in:
Tom Prince
2017-05-31 14:50:07 -06:00
parent a2c24a4009
commit 25d16f53d5
2 changed files with 6 additions and 9 deletions

View File

@@ -49,13 +49,10 @@ impl Body {
pub fn read_to_string(mut body: Body) -> ::std::io::Result<String> {
let mut s = String::new();
match body.reader {
Kind::Reader(ref mut reader, _) => {
reader.read_to_string(&mut s)
Kind::Reader(ref mut reader, _) => reader.read_to_string(&mut s),
Kind::Bytes(ref mut bytes) => (&**bytes).read_to_string(&mut s),
}
Kind::Bytes(ref mut bytes) => {
(&**bytes).read_to_string(&mut s)
}
}.map(|_| s)
.map(|_| s)
}
enum Kind {