mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 08:57:34 +00:00
Reduce visibility of some methods
This commit is contained in:
parent
1759f2fc17
commit
357bf0cedc
2 changed files with 3 additions and 3 deletions
|
@ -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>,
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue