Make ImportFrom level just a u32 (#11170)

This commit is contained in:
Carl Meyer 2024-04-26 20:38:35 -06:00 committed by GitHub
parent 5994414739
commit 845ba7cf5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 100 additions and 182 deletions

View file

@ -28,7 +28,7 @@ impl FormatNodeRule<StmtImportFrom> for FormatStmtImportFrom {
token("from"),
space(),
format_with(|f| {
for _ in 0..level.unwrap_or(0) {
for _ in 0..*level {
token(".").fmt(f)?;
}
Ok(())