summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2020-06-03 10:05:31 +0200
committerDavid Peter <sharkdp@users.noreply.github.com>2020-06-03 19:44:41 +0200
commit74e8373e34fed4c30d0efdc8b3b4864070129aec (patch)
tree0462f7a5a8b56f4ede942c6f5027aad37592641d /src
parentec2722d46520c0fd8fe28b17a788dea5b5e4b7c3 (diff)
Return mappings as a slice
Diffstat (limited to 'src')
-rw-r--r--src/syntax_mapping.rs2
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
}