Skip to content

Commit

Permalink
fix: philip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amiller68 committed Oct 17, 2023
1 parent b6955f2 commit b33c526
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wnfs-hamt/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ where
);

let node = Rc::make_mut(self);
node.persisted_as = OnceCell::new();

// If the bit is not set yet, insert a new pointer.
if !node.bitmask[bit_index] {
Expand Down Expand Up @@ -422,6 +423,7 @@ where
let value_index = self.get_value_index(bit_index);

let node = Rc::make_mut(self);
node.persisted_as = OnceCell::new();

Ok(match &mut node.pointers[value_index] {
// If there is only one value, we can remove the entire pointer.
Expand Down

0 comments on commit b33c526

Please sign in to comment.