Remove some usize references (#3819)

This commit is contained in:
Charlie Marsh 2023-03-30 17:35:42 -04:00 committed by GitHub
parent 9de1f82658
commit cf7e1ddd08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 43 additions and 53 deletions

View file

@ -642,13 +642,13 @@ fn format_import_from(
stmt: &Stmt,
module: Option<&str>,
names: &[Alias],
level: Option<&usize>,
level: Option<usize>,
) -> FormatResult<()> {
write!(f, [text("from")])?;
write!(f, [space()])?;
if let Some(level) = level {
for _ in 0..*level {
for _ in 0..level {
write!(f, [text(".")])?;
}
}
@ -939,7 +939,7 @@ impl Format<ASTFormatContext<'_>> for FormatStmt<'_> {
self.item,
module.as_ref().map(String::as_str),
names,
level.as_ref(),
*level,
),
StmtKind::Expr { value } => format_expr(f, self.item, value),
}?;