diff options
author | sharkdp <davidpeter@web.de> | 2020-06-03 10:05:31 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-06-03 19:44:41 +0200 |
commit | 74e8373e34fed4c30d0efdc8b3b4864070129aec (patch) | |
tree | 0462f7a5a8b56f4ede942c6f5027aad37592641d | |
parent | ec2722d46520c0fd8fe28b17a788dea5b5e4b7c3 (diff) |
Return mappings as a slice
-rw-r--r-- | src/syntax_mapping.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index c719595f..1c817edd 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -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 } |