From 45077f90db50fbcb4d13e94b2ee336bf06222b88 Mon Sep 17 00:00:00 2001 From: Simon Heath Date: Mon, 11 Dec 2017 13:30:53 -0500 Subject: Uppercased path->PATH in constants. --- ipfs-api/src/request/dht.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ipfs-api/src/request/dht.rs') diff --git a/ipfs-api/src/request/dht.rs b/ipfs-api/src/request/dht.rs index ec3239a..7630df3 100644 --- a/ipfs-api/src/request/dht.rs +++ b/ipfs-api/src/request/dht.rs @@ -16,7 +16,7 @@ pub struct DhtFindPeer<'a> { } impl<'a> ApiRequest for DhtFindPeer<'a> { - const path: &'static str = "/dht/findpeer"; + const PATH: &'static str = "/dht/findpeer"; } @@ -27,7 +27,7 @@ pub struct DhtFindProvs<'a> { } impl<'a> ApiRequest for DhtFindProvs<'a> { - const path: &'static str = "/dht/findprovs"; + const PATH: &'static str = "/dht/findprovs"; } @@ -38,7 +38,7 @@ pub struct DhtGet<'a> { } impl<'a> ApiRequest for DhtGet<'a> { - const path: &'static str = "/dht/get"; + const PATH: &'static str = "/dht/get"; } @@ -49,7 +49,7 @@ pub struct DhtProvide<'a> { } impl<'a> ApiRequest for DhtProvide<'a> { - const path: &'static str = "/dht/provide"; + const PATH: &'static str = "/dht/provide"; } @@ -63,7 +63,7 @@ pub struct DhtPut<'a> { } impl<'a> ApiRequest for DhtPut<'a> { - const path: &'static str = "/dht/put"; + const PATH: &'static str = "/dht/put"; } @@ -74,5 +74,5 @@ pub struct DhtQuery<'a> { } impl<'a> ApiRequest for DhtQuery<'a> { - const path: &'static str = "/dht/query"; + const PATH: &'static str = "/dht/query"; } -- cgit v1.2.3