Skip to content

Commit b556333

Browse files
committed
use import
1 parent f76a997 commit b556333

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/word.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
use core::cmp;
12+
use core::iter::Filter;
1213

1314
use 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)]
946942
enum WordsIter<'a> {

0 commit comments

Comments
 (0)