diff options
author | Sameer Puri <11097096+sameer@users.noreply.github.com> | 2018-12-31 16:37:03 -0500 |
---|---|---|
committer | Sameer Puri <11097096+sameer@users.noreply.github.com> | 2018-12-31 16:37:03 -0500 |
commit | 74245c7a9500be16d47a71753170bcc183c067db (patch) | |
tree | 97b46d413a57b841793b33e58d0f82d3d44aa717 /ipfs-api/src/read.rs | |
parent | 2704d2b28996808fe4d20138034e1af81ddc8b0e (diff) |
Fix clippy warnings
Diffstat (limited to 'ipfs-api/src/read.rs')
-rw-r--r-- | ipfs-api/src/read.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipfs-api/src/read.rs b/ipfs-api/src/read.rs index 674d5fa..b12c8b2 100644 --- a/ipfs-api/src/read.rs +++ b/ipfs-api/src/read.rs @@ -75,7 +75,7 @@ where String::from_utf8_lossy(&slice[colon + 2..]).into(), ); - Err(e.into()) + Err(e) } _ => Err(e.into()), } @@ -143,7 +143,7 @@ where #[inline] pub fn new(stream: S) -> StreamReader<S> { StreamReader { - stream: stream, + stream, state: ReadState::NotReady, } } |