Skip to content

Commit 4454518

Browse files
Fix CI (#153)
* Fix warnings * fix --------- Co-authored-by: Georg Semmler <georg.semmler@giga-infosystems.com>
1 parent af87c8d commit 4454518

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/grapheme.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,14 +517,14 @@ impl GraphemeCursor {
517517
for ch in chunk.chars().rev() {
518518
if self.grapheme_category(ch) != gr::GC_Regional_Indicator {
519519
self.ris_count = Some(ris_count);
520-
self.decide((ris_count % 2) == 0);
520+
self.decide(ris_count.is_multiple_of(2));
521521
return;
522522
}
523523
ris_count += 1;
524524
}
525525
self.ris_count = Some(ris_count);
526526
if chunk_start == 0 {
527-
self.decide((ris_count % 2) == 0);
527+
self.decide(ris_count.is_multiple_of(2));
528528
} else {
529529
self.pre_context_offset = Some(chunk_start);
530530
self.state = GraphemeState::Regional;

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl UnicodeSegmentation for str {
258258
}
259259

260260
#[inline]
261-
fn grapheme_indices(&self, is_extended: bool) -> GraphemeIndices {
261+
fn grapheme_indices(&self, is_extended: bool) -> GraphemeIndices<'_> {
262262
grapheme::new_grapheme_indices(self, is_extended)
263263
}
264264

@@ -293,7 +293,7 @@ impl UnicodeSegmentation for str {
293293
}
294294

295295
#[inline]
296-
fn split_sentence_bound_indices(&self) -> USentenceBoundIndices {
296+
fn split_sentence_bound_indices(&self) -> USentenceBoundIndices<'_> {
297297
sentence::new_sentence_bound_indices(self)
298298
}
299299
}

src/word.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,8 +1027,8 @@ mod tests {
10271027
new_ascii_word_bound_indices, new_unicode_words_ascii, new_word_bound_indices,
10281028
};
10291029
use std::string::String;
1030+
use std::vec;
10301031
use std::vec::Vec;
1031-
use std::{format, vec};
10321032

10331033
use proptest::prelude::*;
10341034

0 commit comments

Comments
 (0)