Make HighlightConfiguration::configure use into iterator instead of a Vec<String>

This commit is contained in:
Edgar 2021-05-17 21:44:41 +02:00 committed by Edgar Luque
parent 12207c1f70
commit 9feca80b08
No known key found for this signature in database
GPG key ID: 8731E6C0166EAA85
4 changed files with 10 additions and 6 deletions

View file

@ -661,7 +661,7 @@ impl<'a> LanguageConfiguration<'a> {
}
}
}
result.configure(&all_highlight_names);
result.configure(&all_highlight_names.as_slice());
Ok(Some(result))
}
})