Skip to content

Commit

Permalink
Remove unnecessary casting (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbkaisetsu authored Oct 11, 2022
1 parent 463a9f7 commit 53dd944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vaporetto/src/char_scorer/boundary_tag_scorer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ impl CharScorerBoundaryTag {
&mut sentence.boundary_scores,
);
}
debug_assert!(end as usize <= sentence.char_pma_states.len());
unsafe { *sentence.char_pma_states.get_unchecked_mut(end as usize - 1) = m.value() };
debug_assert!(end <= sentence.char_pma_states.len());
unsafe { *sentence.char_pma_states.get_unchecked_mut(end - 1) = m.value() };
}
}

Expand Down

0 comments on commit 53dd944

Please sign in to comment.