ruff_python_formatter 0.0.2

This is an internal component crate of Ruff
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use ruff_python_ast::StmtBreak;

use crate::prelude::*;

#[derive(Default)]
pub struct FormatStmtBreak;

impl FormatNodeRule<StmtBreak> for FormatStmtBreak {
    fn fmt_fields(&self, _item: &StmtBreak, f: &mut PyFormatter) -> FormatResult<()> {
        token("break").fmt(f)
    }
}