mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Return mappings as a slice
This commit is contained in:
1 parent
ec2722d465
commit
74e8373e34
1 file changed
+1
-1
@@ -59,7 +59,7 @@ impl<'a> SyntaxMapping<'a> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn mappings(&self) -> &Vec<(GlobMatcher, MappingTarget<'a>)> {
|
pub fn mappings(&self) -> &[(GlobMatcher, MappingTarget<'a>)] {
|
||||||
&self.mappings
|
&self.mappings
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user