diff --git a/wnfs/src/private/directory.rs b/wnfs/src/private/directory.rs index 95b554ba..030c9578 100644 --- a/wnfs/src/private/directory.rs +++ b/wnfs/src/private/directory.rs @@ -1,7 +1,7 @@ use super::{ encrypted::Encrypted, link::PrivateLink, PrivateDirectoryContentSerializable, PrivateFile, PrivateForest, PrivateNode, PrivateNodeContentSerializable, PrivateNodeHeader, PrivateRef, - SnapshotKey, TemporalKey, + TemporalKey, }; use crate::{error::FsError, traits::Id, SearchResult, WNFS_VERSION}; use anyhow::{bail, ensure, Result}; diff --git a/wnfs/src/private/node/header.rs b/wnfs/src/private/node/header.rs index b73dcfb0..d5a9a45b 100644 --- a/wnfs/src/private/node/header.rs +++ b/wnfs/src/private/node/header.rs @@ -224,9 +224,9 @@ impl PrivateNodeHeader { pub async fn store_snapshot( &self, store: &impl BlockStore, - rng: &mut impl RngCore, + _rng: &mut impl RngCore, ) -> Result { - let snapshot_key = self.derive_temporal_key().derive_snapshot_key(); + let _snapshot_key = self.derive_temporal_key().derive_snapshot_key(); let tuple = (self.inumber, self.bare_name.clone()); let cbor_bytes = serde_ipld_dagcbor::to_vec(&tuple)?; // let ciphertext = snapshot_key.encrypt(&cbor_bytes, rng)?; @@ -247,7 +247,7 @@ impl PrivateNodeHeader { pub(crate) async fn load_snapshot( cid: &Cid, - snapshot_key: &SnapshotKey, + _snapshot_key: &SnapshotKey, store: &impl BlockStore, ) -> Result { let cbor_bytes = store.get_block(cid).await?; diff --git a/wnfs/src/private/share.rs b/wnfs/src/private/share.rs index 40b47609..9733389c 100644 --- a/wnfs/src/private/share.rs +++ b/wnfs/src/private/share.rs @@ -303,12 +303,12 @@ pub mod sharer { } pub mod recipient { - use super::{sharer, SharePayload, SnapshotSharePointer, TemporalSharePointer}; + use super::{sharer, SharePayload, TemporalSharePointer}; use crate::{ error::ShareError, private::{PrivateForest, PrivateKey, PrivateNode, PrivateRef}, }; - use anyhow::{bail, Result}; + use anyhow::Result; use sha3::Sha3_256; use wnfs_common::BlockStore; use wnfs_hamt::Hasher;