summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/read.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src/read.rs')
-rw-r--r--ipfs-api/src/read.rs4
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,
}
}