Skip to content

Commit 357bf0c

Browse files
committed
Reduce visibility of some methods
1 parent 1759f2f commit 357bf0c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/completion/src/completions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ impl Builder {
4545
}
4646

4747
impl Completions {
48-
pub fn add(&mut self, item: CompletionItem) {
48+
pub(crate) fn add(&mut self, item: CompletionItem) {
4949
self.buf.push(item.into())
5050
}
5151

52-
pub fn add_all<I>(&mut self, items: I)
52+
pub(crate) fn add_all<I>(&mut self, items: I)
5353
where
5454
I: IntoIterator,
5555
I::Item: Into<CompletionItem>,

crates/completion/src/completions/postfix/format_like.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn string_literal_contents(item: &ast::String) -> Option<String> {
7070
/// Parser for a format-like string. It is more allowing in terms of string contents,
7171
/// as we expect variable placeholders to be filled with expressions.
7272
#[derive(Debug)]
73-
pub struct FormatStrParser {
73+
pub(crate) struct FormatStrParser {
7474
input: String,
7575
output: String,
7676
extracted_expressions: Vec<String>,

0 commit comments

Comments
 (0)