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 8, 2024
1 parent 8f0cbbc commit ac46fef
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 @@ -1078,7 +1078,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
// historically, appeasement has always been a successful long-term strategy
let parent_sequences = InscriptionEntry::load(
sequence_number_to_inscription_entry
.get(sequence_number)
.unwrap()
Expand All @@ -1087,7 +1089,7 @@ impl Index {
)
.parents;

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

0 comments on commit ac46fef

Please sign in to comment.