Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
appcypher committed May 5, 2023
1 parent e1911d1 commit ef8052f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wnfs/src/private/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ impl PrivateDirectory {

let temporal_key = self.header.derive_temporal_key();
let previous_link = (1, Encrypted::from_value(previous_cid, &temporal_key)?);
let mut cloned = Rc::make_mut(self);
let cloned = Rc::make_mut(self);

// We make sure to clear any cached states.
cloned.content.persisted_as = OnceCell::new();
Expand Down
2 changes: 1 addition & 1 deletion wnfs/src/private/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ impl PrivateFile {

let temporal_key = self.header.derive_temporal_key();
let previous_link = (1, Encrypted::from_value(previous_cid, &temporal_key)?);
let mut cloned = Rc::make_mut(self);
let cloned = Rc::make_mut(self);

// We make sure to clear any cached states.
cloned.content.persisted_as = OnceCell::new();
Expand Down

0 comments on commit ef8052f

Please sign in to comment.