mirror of
https://github.com/sharkdp/bat
synced 2025-02-17 13:28:29 +00:00
Hide SyntaxMapping::replace
This commit is contained in:
parent
84ba323b1c
commit
90397a8aac
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ impl SyntaxMapping {
|
||||||
self.0.insert(from.into(), to.into())
|
self.0.insert(from.into(), to.into())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn replace<'a>(&self, input: impl Into<Cow<'a, str>>) -> Cow<'a, str> {
|
pub(crate) fn replace<'a>(&self, input: impl Into<Cow<'a, str>>) -> Cow<'a, str> {
|
||||||
let input = input.into();
|
let input = input.into();
|
||||||
match self.0.get(input.as_ref()) {
|
match self.0.get(input.as_ref()) {
|
||||||
Some(s) => Cow::from(s.clone()),
|
Some(s) => Cow::from(s.clone()),
|
||||||
|
|
Loading…
Add table
Reference in a new issue