diff options
author | Simon Heath <icefoxen@gmail.com> | 2017-12-08 17:55:25 -0500 |
---|---|---|
committer | Simon Heath <icefoxen@gmail.com> | 2017-12-08 17:55:25 -0500 |
commit | 52a7388cd07b73fd2e46d143ef51fabd6fff3d1a (patch) | |
tree | 3d71aa811f9355e9634987aaeaad615c3f452beb /ipfs-api/src/request | |
parent | b7b3d36dd384dcaa907c9e00be6355b03c53d2d4 (diff) |
Updated sizes in type definitions
Mostly from digging through the go code in various places.
Rust doesn't really like 'usize' and 'isize' much because they're
specifically the size of array indexes; kinda like size_t in C.
So it can be annoying to use them on different platforms or in cross-
platform API's or suck.
Diffstat (limited to 'ipfs-api/src/request')
-rw-r--r-- | ipfs-api/src/request/ping.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipfs-api/src/request/ping.rs b/ipfs-api/src/request/ping.rs index cd99e66..ef93476 100644 --- a/ipfs-api/src/request/ping.rs +++ b/ipfs-api/src/request/ping.rs @@ -14,7 +14,7 @@ pub struct Ping<'a, 'b> { #[serde(rename = "arg")] pub peer: &'a str, - pub count: &'b Option<usize>, + pub count: &'b Option<i32>, } impl<'a, 'b> ApiRequest for Ping<'a, 'b> { |