diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-02 16:01:38 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-02 16:01:38 +0000 |
commit | cb04f0c019bdd77406a7feb6ae7f4a17924d0693 (patch) | |
tree | 5bb833b20c4d66a3683ceeb60a922a86284d5ad6 /crates/completion/src/completions | |
parent | 731b38fa3c1694648e6c8e60f61820f9783343eb (diff) | |
parent | f5e7f07838975757703a7e00adb45ee43c2d9a1a (diff) |
Merge #6440
6440: Deny unreachable pub r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/completion/src/completions')
-rw-r--r-- | crates/completion/src/completions/postfix/format_like.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/completion/src/completions/postfix/format_like.rs b/crates/completion/src/completions/postfix/format_like.rs index f35114ed1..88ba86acb 100644 --- a/crates/completion/src/completions/postfix/format_like.rs +++ b/crates/completion/src/completions/postfix/format_like.rs | |||
@@ -88,7 +88,7 @@ enum State { | |||
88 | } | 88 | } |
89 | 89 | ||
90 | impl FormatStrParser { | 90 | impl FormatStrParser { |
91 | pub fn new(input: String) -> Self { | 91 | pub(crate) fn new(input: String) -> Self { |
92 | Self { | 92 | Self { |
93 | input: input.into(), | 93 | input: input.into(), |
94 | output: String::new(), | 94 | output: String::new(), |
@@ -98,7 +98,7 @@ impl FormatStrParser { | |||
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | pub fn parse(&mut self) -> Result<(), ()> { | 101 | pub(crate) fn parse(&mut self) -> Result<(), ()> { |
102 | let mut current_expr = String::new(); | 102 | let mut current_expr = String::new(); |
103 | 103 | ||
104 | let mut placeholder_id = 1; | 104 | let mut placeholder_id = 1; |
@@ -194,7 +194,7 @@ impl FormatStrParser { | |||
194 | Ok(()) | 194 | Ok(()) |
195 | } | 195 | } |
196 | 196 | ||
197 | pub fn into_suggestion(&self, macro_name: &str) -> String { | 197 | pub(crate) fn into_suggestion(&self, macro_name: &str) -> String { |
198 | assert!(self.parsed, "Attempt to get a suggestion from not parsed expression"); | 198 | assert!(self.parsed, "Attempt to get a suggestion from not parsed expression"); |
199 | 199 | ||
200 | let expressions_as_string = self.extracted_expressions.join(", "); | 200 | let expressions_as_string = self.extracted_expressions.join(", "); |