Skip to content

Commit 33b9e08

Browse files
committed
Avoid future-depecated anonymous parameters
1 parent 03e3d3a commit 33b9e08

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/str.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,16 +282,16 @@ mod private {
282282
/// Implementing this trait is not permitted outside of `rayon`.
283283
pub trait Pattern: Sized + Sync + Send {
284284
private_decl! {}
285-
fn find_in(&self, &str) -> Option<usize>;
286-
fn rfind_in(&self, &str) -> Option<usize>;
287-
fn is_suffix_of(&self, &str) -> bool;
288-
fn fold_splits<'ch, F>(&self, &'ch str, folder: F, skip_last: bool) -> F
285+
fn find_in(&self, haystack: &str) -> Option<usize>;
286+
fn rfind_in(&self, haystack: &str) -> Option<usize>;
287+
fn is_suffix_of(&self, haystack: &str) -> bool;
288+
fn fold_splits<'ch, F>(&self, haystack: &'ch str, folder: F, skip_last: bool) -> F
289289
where
290290
F: Folder<&'ch str>;
291-
fn fold_matches<'ch, F>(&self, &'ch str, folder: F) -> F
291+
fn fold_matches<'ch, F>(&self, haystack: &'ch str, folder: F) -> F
292292
where
293293
F: Folder<&'ch str>;
294-
fn fold_match_indices<'ch, F>(&self, &'ch str, folder: F, base: usize) -> F
294+
fn fold_match_indices<'ch, F>(&self, haystack: &'ch str, folder: F, base: usize) -> F
295295
where
296296
F: Folder<(usize, &'ch str)>;
297297
}

0 commit comments

Comments
 (0)