diff options
author | Simon Heath <icefoxen@gmail.com> | 2017-12-11 13:25:50 -0500 |
---|---|---|
committer | Simon Heath <icefoxen@gmail.com> | 2017-12-11 13:25:50 -0500 |
commit | c58f396845ee421fc818ed8999103b241b495f1c (patch) | |
tree | 7eca787eca9b950b56f013518cd5258cb820addb /ipfs-api/src/request/tar.rs | |
parent | fc77980617d9ef179ecb1773f3d901f52790cfad (diff) |
Replaced path() method with associated const on ApiRequest trait
Diffstat (limited to 'ipfs-api/src/request/tar.rs')
-rw-r--r-- | ipfs-api/src/request/tar.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ipfs-api/src/request/tar.rs b/ipfs-api/src/request/tar.rs index 33d5004..d582f12 100644 --- a/ipfs-api/src/request/tar.rs +++ b/ipfs-api/src/request/tar.rs @@ -14,10 +14,7 @@ pub struct TarAdd; impl_skip_serialize!(TarAdd); impl ApiRequest for TarAdd { - #[inline] - fn path() -> &'static str { - "/tar/add" - } + const path: &'static str = "/tar/add"; } @@ -28,8 +25,5 @@ pub struct TarCat<'a> { } impl<'a> ApiRequest for TarCat<'a> { - #[inline] - fn path() -> &'static str { - "/tar/cat" - } + const path: &'static str = "/tar/cat"; } |