From 652dec950ceeb89603bca4c0315fa0c2bb6b650e Mon Sep 17 00:00:00 2001 From: Edgar Date: Thu, 20 May 2021 21:54:36 +0200 Subject: [PATCH] use impl instead of intoiterator --- highlight/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/highlight/src/lib.rs b/highlight/src/lib.rs index c8cdc1aa..ae8f7b88 100644 --- a/highlight/src/lib.rs +++ b/highlight/src/lib.rs @@ -293,10 +293,7 @@ impl HighlightConfiguration { /// /// When highlighting, results are returned as `Highlight` values, which contain the index /// of the matched highlight this list of highlight names. - pub fn configure<'a, I, J>(&mut self, recognized_names: &I) - where - I: IntoIterator + Copy, - J: AsRef + 'a, + pub fn configure(&mut self, recognized_names: &[impl AsRef]) { let mut capture_parts = Vec::new(); self.highlight_indices.clear();