Files
ruff/crates/ruff_python_formatter/src/other/f_string.rs
Dhruv Manilawala 1dbfab9a0c Auto-generate formatter nodes for string parts (#8837)
A follow-up to auto-generate the `FormatNodeRule` implementation for the
string part nodes. This is just a dummy implementation that is
unreachable because it's handled by the parent nodes.
2023-11-25 13:00:47 +00:00

13 lines
307 B
Rust

use ruff_python_ast::FString;
use crate::prelude::*;
#[derive(Default)]
pub struct FormatFString;
impl FormatNodeRule<FString> for FormatFString {
fn fmt_fields(&self, _item: &FString, _f: &mut PyFormatter) -> FormatResult<()> {
unreachable!("Handled inside of `FormatExprFString`");
}
}