ruff/crates/ruff_python_formatter/src/module/mod_expression.rs
Charlie Marsh edb9b0c62a
Use the formatter prelude in more files (#6882)
Removes a bunch of imports that are made redundant by the prelude.
2023-08-25 16:51:07 -04:00

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)
}
}