summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/request/bootstrap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src/request/bootstrap.rs')
-rw-r--r--ipfs-api/src/request/bootstrap.rs15
1 files changed, 3 insertions, 12 deletions
diff --git a/ipfs-api/src/request/bootstrap.rs b/ipfs-api/src/request/bootstrap.rs
index 3ff8bf8..c60072a 100644
--- a/ipfs-api/src/request/bootstrap.rs
+++ b/ipfs-api/src/request/bootstrap.rs
@@ -14,10 +14,7 @@ pub struct BootstrapAddDefault;
impl_skip_serialize!(BootstrapAddDefault);
impl ApiRequest for BootstrapAddDefault {
- #[inline]
- fn path() -> &'static str {
- "/bootstrap/add/default"
- }
+ const PATH: &'static str = "/bootstrap/add/default";
}
@@ -26,10 +23,7 @@ pub struct BootstrapList;
impl_skip_serialize!(BootstrapList);
impl ApiRequest for BootstrapList {
- #[inline]
- fn path() -> &'static str {
- "/bootstrap/list"
- }
+ const PATH: &'static str = "/bootstrap/list";
}
@@ -38,8 +32,5 @@ pub struct BootstrapRmAll;
impl_skip_serialize!(BootstrapRmAll);
impl ApiRequest for BootstrapRmAll {
- #[inline]
- fn path() -> &'static str {
- "/bootstrap/rm/all"
- }
+ const PATH: &'static str = "/bootstrap/rm/all";
}