diff options
Diffstat (limited to 'ipfs-api/src/request/key.rs')
-rw-r--r-- | ipfs-api/src/request/key.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ipfs-api/src/request/key.rs b/ipfs-api/src/request/key.rs index 771c48d..e656f60 100644 --- a/ipfs-api/src/request/key.rs +++ b/ipfs-api/src/request/key.rs @@ -43,10 +43,7 @@ pub struct KeyGen<'a, 'b> { } impl<'a, 'b> ApiRequest for KeyGen<'a, 'b> { - #[inline] - fn path() -> &'static str { - "/key/gen" - } + const PATH: &'static str = "/key/gen"; } @@ -55,8 +52,5 @@ pub struct KeyList; impl_skip_serialize!(KeyList); impl ApiRequest for KeyList { - #[inline] - fn path() -> &'static str { - "/key/list" - } + const PATH: &'static str = "/key/list"; } |