Reduce visibility of some methods

This commit is contained in:
Igor Aleksanov 2020-10-26 20:37:19 +03:00
parent 1759f2fc17
commit 357bf0cedc
2 changed files with 3 additions and 3 deletions

View file

@ -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<I>(&mut self, items: I)
pub(crate) fn add_all<I>(&mut self, items: I)
where
I: IntoIterator,
I::Item: Into<CompletionItem>,

View file

@ -70,7 +70,7 @@ fn string_literal_contents(item: &ast::String) -> Option<String> {
/// 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<String>,