diff options
Diffstat (limited to 'crates/completion/src/completions')
-rw-r--r-- | crates/completion/src/completions/postfix/format_like.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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 { | |||
88 | } | 88 | } |
89 | 89 | ||
90 | impl FormatStrParser { | 90 | impl FormatStrParser { |
91 | pub fn new(input: String) -> Self { | 91 | pub(crate) fn new(input: String) -> Self { |
92 | Self { | 92 | Self { |
93 | input: input.into(), | 93 | input: input.into(), |
94 | output: String::new(), | 94 | output: String::new(), |
@@ -98,7 +98,7 @@ impl FormatStrParser { | |||
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | pub fn parse(&mut self) -> Result<(), ()> { | 101 | pub(crate) fn parse(&mut self) -> Result<(), ()> { |
102 | let mut current_expr = String::new(); | 102 | let mut current_expr = String::new(); |
103 | 103 | ||
104 | let mut placeholder_id = 1; | 104 | let mut placeholder_id = 1; |
@@ -194,7 +194,7 @@ impl FormatStrParser { | |||
194 | Ok(()) | 194 | Ok(()) |
195 | } | 195 | } |
196 | 196 | ||
197 | pub fn into_suggestion(&self, macro_name: &str) -> String { | 197 | pub(crate) fn into_suggestion(&self, macro_name: &str) -> String { |
198 | assert!(self.parsed, "Attempt to get a suggestion from not parsed expression"); | 198 | assert!(self.parsed, "Attempt to get a suggestion from not parsed expression"); |
199 | 199 | ||
200 | let expressions_as_string = self.extracted_expressions.join(", "); | 200 | let expressions_as_string = self.extracted_expressions.join(", "); |