mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +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 {
|
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>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue