From ba8d6d1e4ea2590b31470171efc175b0301c5e1c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 2 Nov 2020 16:31:38 +0100 Subject: Remove more unreachable pubs --- crates/completion/src/completions/postfix/format_like.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/completion/src/completions') diff --git a/crates/completion/src/completions/postfix/format_like.rs b/crates/completion/src/completions/postfix/format_like.rs index f35114ed1..88ba86acb 100644 --- a/crates/completion/src/completions/postfix/format_like.rs +++ b/crates/completion/src/completions/postfix/format_like.rs @@ -88,7 +88,7 @@ enum State { } impl FormatStrParser { - pub fn new(input: String) -> Self { + pub(crate) fn new(input: String) -> Self { Self { input: input.into(), output: String::new(), @@ -98,7 +98,7 @@ impl FormatStrParser { } } - pub fn parse(&mut self) -> Result<(), ()> { + pub(crate) fn parse(&mut self) -> Result<(), ()> { let mut current_expr = String::new(); let mut placeholder_id = 1; @@ -194,7 +194,7 @@ impl FormatStrParser { Ok(()) } - pub fn into_suggestion(&self, macro_name: &str) -> String { + pub(crate) fn into_suggestion(&self, macro_name: &str) -> String { assert!(self.parsed, "Attempt to get a suggestion from not parsed expression"); let expressions_as_string = self.extracted_expressions.join(", "); -- cgit v1.2.3