diff --git a/crates/completion/src/completions.rs b/crates/completion/src/completions.rs index c053ddbc02..d5fb85b794 100644 --- a/crates/completion/src/completions.rs +++ b/crates/completion/src/completions.rs @@ -45,11 +45,11 @@ impl Builder { } impl Completions { - pub fn add(&mut self, item: CompletionItem) { + pub(crate) fn add(&mut self, item: CompletionItem) { self.buf.push(item.into()) } - pub fn add_all(&mut self, items: I) + pub(crate) fn add_all(&mut self, items: I) where I: IntoIterator, I::Item: Into, diff --git a/crates/completion/src/completions/postfix/format_like.rs b/crates/completion/src/completions/postfix/format_like.rs index 3595e0fcef..f35114ed1a 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 { /// Parser for a format-like string. It is more allowing in terms of string contents, /// as we expect variable placeholders to be filled with expressions. #[derive(Debug)] -pub struct FormatStrParser { +pub(crate) struct FormatStrParser { input: String, output: String, extracted_expressions: Vec,