Skip to content

Commit

Permalink
use suffix_iter
Browse files Browse the repository at this point in the history
  • Loading branch information
alpancs committed Sep 21, 2024
1 parent 4ca99b3 commit 3ad4f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quranize/src/suffix_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl<'a> SuffixTree<'a> {
let vertices = vec![None];
let edges = Default::default();
let mut tree = Self { vertices, edges };
{ s.char_indices() }.for_each(|(i, _)| tree.construct_suffix(i, 0, &s[i..]));
suffix_iter::suffix_iter(s).for_each(|(i, s)| tree.construct_suffix(i, 0, s));
tree
}

Expand Down

0 comments on commit 3ad4f1e

Please sign in to comment.