mirror of
https://github.com/sharkdp/bat
synced 2024-11-24 04:43:07 +00:00
Fix visibility for SyntaxMapping::get_syntax_for
This change was made in31fb708
, but then was reverted (I assume incorrectly) in6246485
.
This commit is contained in:
parent
4815b6155e
commit
7e1fbcfe95
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ impl<'a> SyntaxMapping<'a> {
|
|||
&self.mappings
|
||||
}
|
||||
|
||||
pub(crate) fn get_syntax_for(&self, path: impl AsRef<Path>) -> Option<MappingTarget<'a>> {
|
||||
pub fn get_syntax_for(&self, path: impl AsRef<Path>) -> Option<MappingTarget<'a>> {
|
||||
// Try matching on the file name as-is.
|
||||
let candidate = Candidate::new(&path);
|
||||
let candidate_filename = path.as_ref().file_name().map(Candidate::new);
|
||||
|
|
Loading…
Reference in a new issue