mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
13 lines
354 B
Rust
13 lines
354 B
Rust
use ruff_python_ast::ModExpression;
|
|
|
|
use crate::prelude::*;
|
|
|
|
#[derive(Default)]
|
|
pub struct FormatModExpression;
|
|
|
|
impl FormatNodeRule<ModExpression> for FormatModExpression {
|
|
fn fmt_fields(&self, item: &ModExpression, f: &mut PyFormatter) -> FormatResult<()> {
|
|
let ModExpression { body, range: _ } = item;
|
|
body.format().fmt(f)
|
|
}
|
|
}
|