Reduce visibility of some methods
This commit is contained in:
@@ -45,11 +45,11 @@ impl Builder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Completions {
|
impl Completions {
|
||||||
pub fn add(&mut self, item: CompletionItem) {
|
pub(crate) fn add(&mut self, item: CompletionItem) {
|
||||||
self.buf.push(item.into())
|
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
|
where
|
||||||
I: IntoIterator,
|
I: IntoIterator,
|
||||||
I::Item: Into<CompletionItem>,
|
I::Item: Into<CompletionItem>,
|
||||||
|
|||||||
@@ -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,
|
/// 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.
|
/// as we expect variable placeholders to be filled with expressions.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct FormatStrParser {
|
pub(crate) struct FormatStrParser {
|
||||||
input: String,
|
input: String,
|
||||||
output: String,
|
output: String,
|
||||||
extracted_expressions: Vec<String>,
|
extracted_expressions: Vec<String>,
|
||||||
|
|||||||
Reference in New Issue
Block a user