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> {
|
struct SegmentState<'a> {
|
||||||
data: &'a Segmenter,
|
data: &'a Segmenter,
|
||||||
text: &'a Ascii,
|
text: &'a Ascii,
|
||||||
memo: HashMap<(Range<usize>, Range<usize>), (f64, Range<usize>)>,
|
memo: HashMap<MemoKey, (f64, Range<usize>)>,
|
||||||
split_cache: Vec<usize>,
|
split_cache: Vec<usize>,
|
||||||
result: &'a mut Vec<String>,
|
result: &'a mut Vec<String>,
|
||||||
best: Vec<Vec<usize>>,
|
best: Vec<Vec<usize>>,
|
||||||
|
@ -155,6 +155,8 @@ impl<'a> SegmentState<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MemoKey = (Range<usize>, Range<usize>);
|
||||||
|
|
||||||
struct Ascii(Vec<u8>);
|
struct Ascii(Vec<u8>);
|
||||||
|
|
||||||
impl Ascii {
|
impl Ascii {
|
||||||
|
|
Loading…
Reference in New Issue