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/response | |
parent | 2704d2b28996808fe4d20138034e1af81ddc8b0e (diff) |
Fix clippy warnings
Diffstat (limited to 'ipfs-api/src/response')
-rw-r--r-- | ipfs-api/src/response/serde.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipfs-api/src/response/serde.rs b/ipfs-api/src/response/serde.rs index 8cfd818..4e7b070 100644 --- a/ipfs-api/src/response/serde.rs +++ b/ipfs-api/src/response/serde.rs @@ -25,14 +25,14 @@ impl<'de> Visitor<'de> for IntegerVisitor { where E: Error, { - Ok(num as i64) + Ok(num.into()) } fn visit_i32<E>(self, num: i32) -> Result<Self::Value, E> where E: Error, { - Ok(num as i64) + Ok(num.into()) } fn visit_i64<E>(self, num: i64) -> Result<Self::Value, E> @@ -46,14 +46,14 @@ impl<'de> Visitor<'de> for IntegerVisitor { where E: Error, { - Ok(num as i64) + Ok(num.into()) } fn visit_u32<E>(self, num: u32) -> Result<Self::Value, E> where E: Error, { - Ok(num as i64) + Ok(num.into()) } fn visit_u64<E>(self, num: u64) -> Result<Self::Value, E> |