File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 99// except according to those terms.
1010
1111use core:: cmp;
12+ use core:: iter:: Filter ;
1213
1314use crate :: tables:: word:: WordCat ;
1415
@@ -929,18 +930,13 @@ fn unicode_word_ok(t: &(usize, &str)) -> bool {
929930 has_alphanumeric ( & t. 1 )
930931}
931932
932- type AsciiWordsIter < ' a > = core :: iter :: Filter <
933+ type AsciiWordsIter < ' a > = Filter <
933934 core:: iter:: Map < AsciiWordBoundIter < ' a > , fn ( ( usize , & ' a str ) ) -> & ' a str > ,
934935 fn ( & & ' a str ) -> bool ,
935936> ;
936-
937- type UnicodeWordsIter < ' a > = core:: iter:: Filter < UWordBounds < ' a > , fn ( & & ' a str ) -> bool > ;
938-
939- type AsciiIndicesIter < ' a > =
940- core:: iter:: Filter < AsciiWordBoundIter < ' a > , fn ( & ( usize , & ' a str ) ) -> bool > ;
941-
942- type UnicodeIndicesIter < ' a > =
943- core:: iter:: Filter < UWordBoundIndices < ' a > , fn ( & ( usize , & ' a str ) ) -> bool > ;
937+ type UnicodeWordsIter < ' a > = Filter < UWordBounds < ' a > , fn ( & & ' a str ) -> bool > ;
938+ type AsciiIndicesIter < ' a > = Filter < AsciiWordBoundIter < ' a > , fn ( & ( usize , & ' a str ) ) -> bool > ;
939+ type UnicodeIndicesIter < ' a > = Filter < UWordBoundIndices < ' a > , fn ( & ( usize , & ' a str ) ) -> bool > ;
944940
945941#[ derive( Debug ) ]
946942enum WordsIter < ' a > {
You can’t perform that action at this time.
0 commit comments