Skip to content

Commit

Permalink
add clippy allow
Browse files Browse the repository at this point in the history
  • Loading branch information
BSathvik committed Jun 9, 2024
1 parent 97e601a commit 1c3cf0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/jrsonnet-evaluator/src/stdlib/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ pub fn render_integer(
} else {
let mut v = iv.abs();
let mut nums = Vec::with_capacity(1);

#[allow(clippy::while_float)]
while v != 0.0 {
nums.push((v % radix) as u8);
v = (v / radix).floor();
Expand Down

0 comments on commit 1c3cf0a

Please sign in to comment.