Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
InSyncWithFoo committed Dec 2, 2024
1 parent 5a270e4 commit e322dfd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ fn handle_round(checker: &Checker, outer_range: TextRange, arguments: &Arguments
let number_expr = checker.locator().slice(number);
let new_content = match ndigits {
Some(Expr::NumberLiteral(ExprNumberLiteral { value, .. })) if is_literal_zero(value) => {
format!("round({})", number_expr)
format!("round({number_expr})")
}
Some(Expr::NoneLiteral(_)) | None => format!("round({})", number_expr),
Some(Expr::NoneLiteral(_)) | None => format!("round({number_expr})"),
_ => return None,
};

Expand Down

0 comments on commit e322dfd

Please sign in to comment.