From 74245c7a9500be16d47a71753170bcc183c067db Mon Sep 17 00:00:00 2001 From: Sameer Puri <11097096+sameer@users.noreply.github.com> Date: Mon, 31 Dec 2018 16:37:03 -0500 Subject: Fix clippy warnings --- ipfs-api/src/read.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipfs-api/src/read.rs') 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 { StreamReader { - stream: stream, + stream, state: ReadState::NotReady, } } -- cgit v1.2.3