Skip to content

Commit

Permalink
chore: fix typo for "recursive"
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed Dec 11, 2024
1 parent 84dce8b commit f70780e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/lib/src/file/map/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ where
{
fn mock() -> Self {
let mut saved_nonces = SavedRopsMapNonces::default();
recurive_build(
recursive_build(
RopsTree::Map(RopsMap::mock()),
&mut saved_nonces,
&DataKey::mock(),
&KeyPath::default(),
);
return saved_nonces;

fn recurive_build<Ci: Cipher>(
fn recursive_build<Ci: Cipher>(
tree: RopsTree<EncryptedMap<Ci>>,
saved_nonces: &mut SavedRopsMapNonces<Ci>,
data_key: &DataKey,
Expand All @@ -61,11 +61,11 @@ where
match tree {
RopsTree::Sequence(sequence) => sequence
.into_iter()
.for_each(|sub_tree| recurive_build(sub_tree, saved_nonces, data_key, key_path)),
.for_each(|sub_tree| recursive_build(sub_tree, saved_nonces, data_key, key_path)),
RopsTree::Map(map) => map
.0
.into_iter()
.for_each(|(key, sub_tree)| recurive_build(sub_tree, saved_nonces, data_key, &key_path.join(&key))),
.for_each(|(key, sub_tree)| recursive_build(sub_tree, saved_nonces, data_key, &key_path.join(&key))),
RopsTree::Null => (),
RopsTree::Leaf(encrypted_map_leaf) => {
if let RopsMapEncryptedLeaf::Encrypted(encrypted_value) = encrypted_map_leaf {
Expand Down

0 comments on commit f70780e

Please sign in to comment.