Skip to content

Commit

Permalink
Fix compile error after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Dec 31, 2024
1 parent 2228e9e commit 346b224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff_linter/src/rules/ruff/rules/unnecessary_round.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ pub(super) fn rounded_and_ndigits<'a>(
return None;
}

let rounded = arguments.find_argument("number", 0)?;
let ndigits = arguments.find_argument("ndigits", 1);
let rounded = arguments.find_argument_value("number", 0)?;
let ndigits = arguments.find_argument_value("ndigits", 1);

let rounded_kind = match rounded {
Expr::Name(name) => {
Expand Down

0 comments on commit 346b224

Please sign in to comment.