use impl instead of intoiterator
This commit is contained in:
parent
005eb12cfe
commit
652dec950c
1 changed files with 1 additions and 4 deletions
|
|
@ -293,10 +293,7 @@ impl HighlightConfiguration {
|
||||||
///
|
///
|
||||||
/// When highlighting, results are returned as `Highlight` values, which contain the index
|
/// When highlighting, results are returned as `Highlight` values, which contain the index
|
||||||
/// of the matched highlight this list of highlight names.
|
/// of the matched highlight this list of highlight names.
|
||||||
pub fn configure<'a, I, J>(&mut self, recognized_names: &I)
|
pub fn configure(&mut self, recognized_names: &[impl AsRef<str>])
|
||||||
where
|
|
||||||
I: IntoIterator<Item = &'a J> + Copy,
|
|
||||||
J: AsRef<str> + 'a,
|
|
||||||
{
|
{
|
||||||
let mut capture_parts = Vec::new();
|
let mut capture_parts = Vec::new();
|
||||||
self.highlight_indices.clear();
|
self.highlight_indices.clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue