diff options
Diffstat (limited to 'ipfs-api/src/request/block.rs')
-rw-r--r-- | ipfs-api/src/request/block.rs | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/ipfs-api/src/request/block.rs b/ipfs-api/src/request/block.rs index 8409e0f..b525109 100644 --- a/ipfs-api/src/request/block.rs +++ b/ipfs-api/src/request/block.rs @@ -16,10 +16,7 @@ pub struct BlockGet<'a> { } impl<'a> ApiRequest for BlockGet<'a> { - #[inline] - fn path() -> &'static str { - "/block/get" - } + const PATH: &'static str = "/block/get"; } @@ -28,10 +25,7 @@ pub struct BlockPut; impl_skip_serialize!(BlockPut); impl ApiRequest for BlockPut { - #[inline] - fn path() -> &'static str { - "/block/put" - } + const PATH: &'static str = "/block/put"; } @@ -42,10 +36,7 @@ pub struct BlockRm<'a> { } impl<'a> ApiRequest for BlockRm<'a> { - #[inline] - fn path() -> &'static str { - "/block/rm" - } + const PATH: &'static str = "/block/rm"; } @@ -56,8 +47,5 @@ pub struct BlockStat<'a> { } impl<'a> ApiRequest for BlockStat<'a> { - #[inline] - fn path() -> &'static str { - "/block/stat" - } + const PATH: &'static str = "/block/stat"; } |