(&self, f: &mut Formatter<PyFormatContext<'_>>)
| 650 | |
| 651 | impl Format<PyFormatContext<'_>> for NormalizedString<'_> { |
| 652 | fn fmt(&self, f: &mut Formatter<PyFormatContext<'_>>) -> FormatResult<()> { |
| 653 | let quotes = StringQuotes::from(self.flags); |
| 654 | ruff_formatter::write!(f, [self.flags.prefix(), quotes])?; |
| 655 | match &self.text { |
| 656 | Cow::Borrowed(_) => source_text_slice(self.range()).fmt(f)?, |
| 657 | Cow::Owned(normalized) => text(normalized).fmt(f)?, |
| 658 | } |
| 659 | |
| 660 | quotes.fmt(f) |
| 661 | } |
| 662 | } |
| 663 | |
| 664 | pub(crate) fn normalize_string( |
nothing calls this directly
no test coverage detected