Name complex type as suggested by clippy
This commit is contained in:
parent
691ecbc3c6
commit
d554825594
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue