Remove more unreachable pubs

This commit is contained in:
Aleksey Kladov 2020-11-02 16:31:38 +01:00
parent 731b38fa3c
commit ba8d6d1e4e
39 changed files with 114 additions and 121 deletions

View file

@ -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(", ");