mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Remove more unreachable pubs
This commit is contained in:
parent
731b38fa3c
commit
ba8d6d1e4e
39 changed files with 114 additions and 121 deletions
|
@ -88,7 +88,7 @@ enum State {
|
|||
}
|
||||
|
||||
impl FormatStrParser {
|
||||
pub fn new(input: String) -> Self {
|
||||
pub(crate) fn new(input: String) -> Self {
|
||||
Self {
|
||||
input: input.into(),
|
||||
output: String::new(),
|
||||
|
@ -98,7 +98,7 @@ impl FormatStrParser {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn parse(&mut self) -> Result<(), ()> {
|
||||
pub(crate) fn parse(&mut self) -> Result<(), ()> {
|
||||
let mut current_expr = String::new();
|
||||
|
||||
let mut placeholder_id = 1;
|
||||
|
@ -194,7 +194,7 @@ impl FormatStrParser {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn into_suggestion(&self, macro_name: &str) -> String {
|
||||
pub(crate) fn into_suggestion(&self, macro_name: &str) -> String {
|
||||
assert!(self.parsed, "Attempt to get a suggestion from not parsed expression");
|
||||
|
||||
let expressions_as_string = self.extracted_expressions.join(", ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue