Skip to content

Commit

Permalink
cnidarium(substore): manual formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Mar 22, 2024
1 parent 84c9f43 commit 332f30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cnidarium/src/store/substore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ impl SubstoreStorage {
// `rustfmt` panics on inlining the closure, so we use a helper function to skip the key.
let skip_key = |(keyhash, _key, some_value)| (keyhash, some_value);

let (root_hash, batch)= if perform_migration {
let (root_hash, batch) = if perform_migration {
jmt.append_value_set(unwritten_changes.into_iter().map(skip_key), write_version)?
} else {
jmt.put_value_set(unwritten_changes.into_iter().map(skip_key), write_version)?
Expand Down

0 comments on commit 332f30f

Please sign in to comment.