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.
13 lines
307 B
Rust
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`");
|
|
}
|
|
}
|