Cargo fmt

This commit is contained in:
Clément Renault 2025-06-03 14:50:21 +02:00
parent 8fdcdee0cc
commit 82313a4444
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
18 changed files with 35 additions and 42 deletions

View file

@ -375,9 +375,11 @@ impl IndexScheduler {
post_commit_dabases_sizes
.get(dbname)
.map(|post_size| {
use byte_unit::{Byte, UnitType::Binary};
use std::cmp::Ordering::{Equal, Greater, Less};
use byte_unit::Byte;
use byte_unit::UnitType::Binary;
let post = Byte::from_u64(*post_size as u64).get_appropriate_unit(Binary);
let diff_size = post_size.abs_diff(*pre_size) as u64;
let diff = Byte::from_u64(diff_size).get_appropriate_unit(Binary);