Skip to content

Commit 8dcfe36

Browse files
committed
lints
1 parent 41774e4 commit 8dcfe36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/src/nodestore/persist.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ impl NodeStore<Committed, FileBacked> {
456456

457457
// Decrement gauge for writes that have actually completed
458458
if completed_writes > 0 {
459-
#[expect(clippy::cast_possible_truncation)]
459+
#[expect(clippy::cast_possible_truncation, clippy::cast_precision_loss)]
460460
gauge!("firewood.nodes.unwritten").decrement(completed_writes as f64);
461461
}
462462
}
@@ -479,7 +479,7 @@ impl NodeStore<Committed, FileBacked> {
479479

480480
// Decrement gauge for final batch of writes that completed
481481
if final_completed_writes > 0 {
482-
#[expect(clippy::cast_possible_truncation)]
482+
#[expect(clippy::cast_possible_truncation, clippy::cast_possible_truncation)]
483483
gauge!("firewood.nodes.unwritten").decrement(final_completed_writes as f64);
484484
}
485485

0 commit comments

Comments
 (0)