diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/completion/src/completions.rs | 4 | ||||
-rw-r--r-- | crates/completion/src/completions/postfix/format_like.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/completion/src/completions.rs b/crates/completion/src/completions.rs index c053ddbc0..d5fb85b79 100644 --- a/crates/completion/src/completions.rs +++ b/crates/completion/src/completions.rs | |||
@@ -45,11 +45,11 @@ impl Builder { | |||
45 | } | 45 | } |
46 | 46 | ||
47 | impl Completions { | 47 | impl Completions { |
48 | pub fn add(&mut self, item: CompletionItem) { | 48 | pub(crate) fn add(&mut self, item: CompletionItem) { |
49 | self.buf.push(item.into()) | 49 | self.buf.push(item.into()) |
50 | } | 50 | } |
51 | 51 | ||
52 | pub fn add_all<I>(&mut self, items: I) | 52 | pub(crate) fn add_all<I>(&mut self, items: I) |
53 | where | 53 | where |
54 | I: IntoIterator, | 54 | I: IntoIterator, |
55 | I::Item: Into<CompletionItem>, | 55 | I::Item: Into<CompletionItem>, |
diff --git a/crates/completion/src/completions/postfix/format_like.rs b/crates/completion/src/completions/postfix/format_like.rs index 3595e0fce..f35114ed1 100644 --- a/crates/completion/src/completions/postfix/format_like.rs +++ b/crates/completion/src/completions/postfix/format_like.rs | |||
@@ -70,7 +70,7 @@ fn string_literal_contents(item: &ast::String) -> Option<String> { | |||
70 | /// Parser for a format-like string. It is more allowing in terms of string contents, | 70 | /// Parser for a format-like string. It is more allowing in terms of string contents, |
71 | /// as we expect variable placeholders to be filled with expressions. | 71 | /// as we expect variable placeholders to be filled with expressions. |
72 | #[derive(Debug)] | 72 | #[derive(Debug)] |
73 | pub struct FormatStrParser { | 73 | pub(crate) struct FormatStrParser { |
74 | input: String, | 74 | input: String, |
75 | output: String, | 75 | output: String, |
76 | extracted_expressions: Vec<String>, | 76 | extracted_expressions: Vec<String>, |