summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/request/dag.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src/request/dag.rs')
-rw-r--r--ipfs-api/src/request/dag.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/ipfs-api/src/request/dag.rs b/ipfs-api/src/request/dag.rs
index 5e9e237..cc5cf08 100644
--- a/ipfs-api/src/request/dag.rs
+++ b/ipfs-api/src/request/dag.rs
@@ -16,10 +16,7 @@ pub struct DagGet<'a> {
}
impl<'a> ApiRequest for DagGet<'a> {
- #[inline]
- fn path() -> &'static str {
- "/dag/get"
- }
+ const PATH: &'static str = "/dag/get";
}
@@ -28,8 +25,5 @@ pub struct DagPut;
impl_skip_serialize!(DagPut);
impl ApiRequest for DagPut {
- #[inline]
- fn path() -> &'static str {
- "/dag/put"
- }
+ const PATH: &'static str = "/dag/put";
}