Skip to content

Commit

Permalink
Fix plural in variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
arik-so committed Mar 10, 2024
1 parent d54c7f7 commit 755a1f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,9 @@ impl Index {
.open_table(SEQUENCE_NUMBER_TO_INSCRIPTION_ENTRY)
.unwrap();

let parents_sequences = InscriptionEntry::load(
// we need to introduce a temporary variable to appease the borrow checker
// a historically tried and true strategy
let parent_sequences = InscriptionEntry::load(
sequence_number_to_inscription_entry
.get(sequence_number)
.unwrap()
Expand All @@ -1090,7 +1092,7 @@ impl Index {
)
.parents;

parents_sequences
parent_sequences
.into_iter()
.map(|parent_sequence_number| {
InscriptionEntry::load(
Expand Down

0 comments on commit 755a1f7

Please sign in to comment.