diff options
Diffstat (limited to 'ipfs-api/src/request/dht.rs')
-rw-r--r-- | ipfs-api/src/request/dht.rs | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/ipfs-api/src/request/dht.rs b/ipfs-api/src/request/dht.rs index 877a69a..dfafbc4 100644 --- a/ipfs-api/src/request/dht.rs +++ b/ipfs-api/src/request/dht.rs @@ -16,10 +16,7 @@ pub struct DhtFindPeer<'a> { } impl<'a> ApiRequest for DhtFindPeer<'a> { - #[inline] - fn path() -> &'static str { - "/dht/findpeer" - } + const PATH: &'static str = "/dht/findpeer"; } @@ -30,10 +27,7 @@ pub struct DhtFindProvs<'a> { } impl<'a> ApiRequest for DhtFindProvs<'a> { - #[inline] - fn path() -> &'static str { - "/dht/findprovs" - } + const PATH: &'static str = "/dht/findprovs"; } @@ -44,10 +38,7 @@ pub struct DhtGet<'a> { } impl<'a> ApiRequest for DhtGet<'a> { - #[inline] - fn path() -> &'static str { - "/dht/get" - } + const PATH: &'static str = "/dht/get"; } @@ -58,10 +49,7 @@ pub struct DhtProvide<'a> { } impl<'a> ApiRequest for DhtProvide<'a> { - #[inline] - fn path() -> &'static str { - "/dht/provide" - } + const PATH: &'static str = "/dht/provide"; } @@ -75,10 +63,7 @@ pub struct DhtPut<'a> { } impl<'a> ApiRequest for DhtPut<'a> { - #[inline] - fn path() -> &'static str { - "/dht/put" - } + const PATH: &'static str = "/dht/put"; } @@ -89,8 +74,5 @@ pub struct DhtQuery<'a> { } impl<'a> ApiRequest for DhtQuery<'a> { - #[inline] - fn path() -> &'static str { - "/dht/query" - } + const PATH: &'static str = "/dht/query"; } |