* Generate FormatRule definitions * Generate verbatim output * pub(crate) everything * clippy fix * Update crates/ruff_python_formatter/src/lib.rs Co-authored-by: Micha Reiser <micha@reiser.io> * Update crates/ruff_python_formatter/src/lib.rs Co-authored-by: Micha Reiser <micha@reiser.io> * stub out with Ok(()) again * Update crates/ruff_python_formatter/src/lib.rs Co-authored-by: Micha Reiser <micha@reiser.io> * PyFormatContext::{contents, locator} with `#[allow(unused)]` * Can't leak private type * remove commented code * Fix ruff errors * pub struct Format{node} due to rust rules --------- Co-authored-by: Julian LaNeve <lanevejulian@gmail.com> Co-authored-by: Micha Reiser <micha@reiser.io>
13 lines
338 B
Rust
13 lines
338 B
Rust
use crate::{FormatNodeRule, PyFormatter};
|
|
use ruff_formatter::FormatResult;
|
|
use rustpython_parser::ast::ExprStarred;
|
|
|
|
#[derive(Default)]
|
|
pub struct FormatExprStarred;
|
|
|
|
impl FormatNodeRule<ExprStarred> for FormatExprStarred {
|
|
fn fmt_fields(&self, _item: &ExprStarred, _f: &mut PyFormatter) -> FormatResult<()> {
|
|
Ok(())
|
|
}
|
|
}
|