diff --git a/crates/ruff_python_formatter/src/expression/string.rs b/crates/ruff_python_formatter/src/expression/string.rs index 6343ae4ca2b32c..09c1ffbd8f8aba 100644 --- a/crates/ruff_python_formatter/src/expression/string.rs +++ b/crates/ruff_python_formatter/src/expression/string.rs @@ -357,7 +357,7 @@ impl Format> for StringPrefix { /// Detects the preferred quotes for `input`. /// * single quoted strings: The preferred quote style is the one that requires less escape sequences. /// * triple quoted strings: Use double quotes except the string contains a sequence of `"""`. -pub(super) fn preferred_quotes( +fn preferred_quotes( input: &str, quotes: StringQuotes, configured_style: QuoteStyle, @@ -472,7 +472,7 @@ impl StringQuotes { self.triple } - pub(super) const fn text_len(self) -> TextSize { + const fn text_len(self) -> TextSize { if self.triple { TextSize::new(3) } else { @@ -498,7 +498,7 @@ impl Format> for StringQuotes { /// with the provided `style`. /// /// Returns the normalized string and whether it contains new lines. -pub(super) fn normalize_string(input: &str, quotes: StringQuotes) -> (Cow, ContainsNewlines) { +fn normalize_string(input: &str, quotes: StringQuotes) -> (Cow, ContainsNewlines) { // The normalized string if `input` is not yet normalized. // `output` must remain empty if `input` is already normalized. let mut output = String::new();