Name complex type as suggested by clippy

This commit is contained in:
Dirkjan Ochtman 2020-11-26 11:33:36 +01:00
parent 691ecbc3c6
commit d554825594
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,7 @@ impl Segmenter {
struct SegmentState<'a> {
data: &'a Segmenter,
text: &'a Ascii,
memo: HashMap<(Range<usize>, Range<usize>), (f64, Range<usize>)>,
memo: HashMap<MemoKey, (f64, Range<usize>)>,
split_cache: Vec<usize>,
result: &'a mut Vec<String>,
best: Vec<Vec<usize>>,
@ -155,6 +155,8 @@ impl<'a> SegmentState<'a> {
}
}
type MemoKey = (Range<usize>, Range<usize>);
struct Ascii(Vec<u8>);
impl Ascii {