From 90397a8aac02a8be0250ca54e3fcb6c348dee52d Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sat, 21 Mar 2020 20:58:11 +0100 Subject: [PATCH] Hide SyntaxMapping::replace --- src/syntax_mapping.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index 3126ac9c..267feb63 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -13,7 +13,7 @@ impl SyntaxMapping { self.0.insert(from.into(), to.into()) } - pub fn replace<'a>(&self, input: impl Into>) -> Cow<'a, str> { + pub(crate) fn replace<'a>(&self, input: impl Into>) -> Cow<'a, str> { let input = input.into(); match self.0.get(input.as_ref()) { Some(s) => Cow::from(s.clone()),