Skip to content

Commit

Permalink
Fix double reference warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeday committed Nov 8, 2023
1 parent 2d2f5bf commit 1241cc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/morx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1188,12 +1188,12 @@ impl<'a> ContextualSubstitution<'a> {
return Err(ParseError::BadIndex);
}

if let Some(contxt_entry) = &contextual_subtable
if let Some(contxt_entry) = contextual_subtable
.entry_table
.contextual_entries
.get(usize::from(index_to_entry_table))
{
entry = contxt_entry.clone();
entry = contxt_entry;
} else {
return Err(ParseError::BadIndex);
}
Expand Down Expand Up @@ -1303,12 +1303,12 @@ impl<'a> LigatureSubstitution<'a> {
return Err(ParseError::BadIndex);
}

if let Some(lig_entry) = &ligature_subtable
if let Some(lig_entry) = ligature_subtable
.entry_table
.lig_entries
.get(usize::from(index_to_entry_table))
{
entry = lig_entry.clone();
entry = lig_entry;
} else {
return Err(ParseError::BadIndex);
}
Expand Down

0 comments on commit 1241cc3

Please sign in to comment.