From d5548255943bbf0567dc6d13820d5dfc73015d2e Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 26 Nov 2020 11:33:36 +0100 Subject: [PATCH] Name complex type as suggested by clippy --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 653acfb..71a6b31 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,7 +76,7 @@ impl Segmenter { struct SegmentState<'a> { data: &'a Segmenter, text: &'a Ascii, - memo: HashMap<(Range, Range), (f64, Range)>, + memo: HashMap)>, split_cache: Vec, result: &'a mut Vec, best: Vec>, @@ -155,6 +155,8 @@ impl<'a> SegmentState<'a> { } } +type MemoKey = (Range, Range); + struct Ascii(Vec); impl Ascii {