Cargo fmt

This commit is contained in:
Clément Renault
2025-06-03 14:50:21 +02:00
parent 8fdcdee0cc
commit 82313a4444
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);