mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
13 lines
373 B
Rust
13 lines
373 B
Rust
use crate::{FormatNodeRule, PyFormatter};
|
|
use ruff_formatter::prelude::text;
|
|
use ruff_formatter::{Format, FormatResult};
|
|
use ruff_python_ast::StmtPass;
|
|
|
|
#[derive(Default)]
|
|
pub struct FormatStmtPass;
|
|
|
|
impl FormatNodeRule<StmtPass> for FormatStmtPass {
|
|
fn fmt_fields(&self, _item: &StmtPass, f: &mut PyFormatter) -> FormatResult<()> {
|
|
text("pass").fmt(f)
|
|
}
|
|
}
|