Return mappings as a slice
commit74e8373e34fed4c30d0efdc8b3b4864070129aec
authorsharkdp <davidpeter@web.de>
dateWed 3 Jun 2020, 10:05 (6 years ago)
parentec2722d
src/syntax_mapping.rs+1−1
@@ -59,7 +59,7 @@ impl<'a> SyntaxMapping<'a> {
5959 Ok(())
6060 }
6161
62− pub fn mappings(&self) -> &Vec<(GlobMatcher, MappingTarget<'a>)> {
62+ pub fn mappings(&self) -> &[(GlobMatcher, MappingTarget<'a>)] {
6363 &self.mappings
6464 }
6565