diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-04 17:03:09 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-04 21:16:37 +0100 |
commit | e5d610270bed47a91ecca8d51adc705bed58cda7 (patch) | |
tree | 52a5d63edbbf5f8bbf154757969877bce17c3725 /src/cid.rs | |
parent | 3a3b342a4ae5a90003b6ef9faa65ca7f0a025962 (diff) |
Rewrite using "ipfs" crate
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/cid.rs')
-rw-r--r-- | src/cid.rs | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -21,20 +21,6 @@ pub trait TryToCid { fn try_to_cid(self) -> Result<Cid>; } -impl TryToCid for ipfs_api_backend_hyper::response::AddResponse { - fn try_to_cid(self) -> Result<Cid> { - log::debug!("Transforming to CID => {:?}", self); - string_to_cid(self.hash) - } -} - -impl TryToCid for ipfs_api_backend_hyper::response::DagPutResponse { - fn try_to_cid(self) -> Result<Cid> { - log::debug!("Transforming to CID => {:?}", self); - string_to_cid(self.cid.cid_string) - } -} - impl daglib::NodeId for Cid { } |