Return mappings as a slice

This commit is contained in:
sharkdp 2020-06-03 10:05:31 +02:00 committed by David Peter
parent ec2722d465
commit 74e8373e34
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ impl<'a> SyntaxMapping<'a> {
Ok(())
}
pub fn mappings(&self) -> &Vec<(GlobMatcher, MappingTarget<'a>)> {
pub fn mappings(&self) -> &[(GlobMatcher, MappingTarget<'a>)] {
&self.mappings
}