diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2018-01-23 18:30:11 -0500 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2018-01-23 18:30:11 -0500 |
commit | c2f1199de55897cc98d7663f171329a04e63b230 (patch) | |
tree | 37d5fcd052f9fce50eacae78633cf09a1c8a9901 /ipfs-api/src/header.rs | |
parent | 06a3776548b8c81226ef61715e5a2e98e29799c9 (diff) |
formatting
Diffstat (limited to 'ipfs-api/src/header.rs')
-rw-r--r-- | ipfs-api/src/header.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipfs-api/src/header.rs b/ipfs-api/src/header.rs index 460af2b..aec3c0a 100644 --- a/ipfs-api/src/header.rs +++ b/ipfs-api/src/header.rs @@ -10,7 +10,6 @@ use hyper; use hyper::header::{self, Header, Raw}; use std::fmt; - /// Header that is returned for streaming calls. /// /// A `Trailer` header indicates that after a streaming call, there will @@ -51,7 +50,6 @@ impl Header for Trailer { } } - /// This header is included while streaming if an error occured /// while streaming the data. /// @@ -69,7 +67,9 @@ impl Header for XStreamError { if let Some(bytes) = raw.one() { let value = String::from_utf8_lossy(bytes); - Ok(XStreamError { error: value.into_owned() }) + Ok(XStreamError { + error: value.into_owned(), + }) } else { Err(hyper::Error::Header) } |