Skip to content

Commit 1710f19

Browse files
committed
Fix warnings
1 parent 4914eab commit 1710f19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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
@@ -1028,7 +1028,7 @@ mod tests {
10281028
};
10291029
use std::string::String;
10301030
use std::vec::Vec;
1031-
use std::{format, vec};
1031+
use std::{vec};
10321032

10331033
use proptest::prelude::*;
10341034

0 commit comments

Comments
 (0)