Skip to content

Commit

Permalink
remove pub(super)s from initial wip impl
Browse files Browse the repository at this point in the history
  • Loading branch information
davidszotten committed Jul 30, 2023
1 parent 9353910 commit a1f19c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ruff_python_formatter/src/expression/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl Format<PyFormatContext<'_>> 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,
Expand Down Expand Up @@ -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 {
Expand All @@ -498,7 +498,7 @@ impl Format<PyFormatContext<'_>> 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<str>, ContainsNewlines) {
fn normalize_string(input: &str, quotes: StringQuotes) -> (Cow<str>, ContainsNewlines) {
// The normalized string if `input` is not yet normalized.
// `output` must remain empty if `input` is already normalized.
let mut output = String::new();
Expand Down

0 comments on commit a1f19c0

Please sign in to comment.