We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 428d2b5 commit c0e5b96Copy full SHA for c0e5b96
rust/hermes-ipfs/src/lib.rs
@@ -181,7 +181,7 @@ impl HermesIpfs {
181
///
182
/// Returns an error if pinning fails.
183
pub async fn insert_pin(&self, cid: &Cid) -> anyhow::Result<()> {
184
- self.node.insert_pin(cid.clone()).await
+ self.node.insert_pin(cid).await
185
}
186
187
/// Checks whether a given block is pinned.
0 commit comments