From 357bf0cedc658b7c95952324fda4bbe7f41a3e6a Mon Sep 17 00:00:00 2001 From: Igor Aleksanov Date: Mon, 26 Oct 2020 20:37:19 +0300 Subject: Reduce visibility of some methods --- crates/completion/src/completions.rs | 4 ++-- crates/completion/src/completions/postfix/format_like.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/completion/src') 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 { } 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 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 { /// 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, -- cgit v1.2.3