dsc 0.1.3

dsc is a cli tool for finding and removing duplicate files on one or multiple file systems, while respecting your gitignore rules.
1
2
3
4
5
6
7
8
9
10
11
12
13
use core::fmt;
use format_num::NumberFormat;

#[derive(Debug)]
pub struct HumanInteger(pub u64);

impl fmt::Display for HumanInteger {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        let format = NumberFormat::new();

        f.write_str(format.format(",.0", self.0 as f64).as_str())
    }
}