Clippy auto fix

This commit is contained in:
LeopoldArkham 2022-08-26 22:50:17 +02:00
parent f11da47922
commit 93a8a5572d
3 changed files with 3 additions and 3 deletions

View file

@ -8,6 +8,6 @@ fn main() {
println!("{}", format_size(5456usize, BINARY));
println!("{}", format_size(1024usize, BINARY));
println!("{}", format_size(1000usize, DECIMAL));
println!("{}", format_size(1023_654_123_654u64, DECIMAL));
println!("{}", format_size(1_023_654_123_654_u64, DECIMAL));
println!("{}", format_size(123456789usize, CONVENTIONAL));
}

View file

@ -65,7 +65,7 @@ pub struct IFormatter<T: ToF64, O: AsRef<FormatSizeOptions>> {
impl<V: ToF64, O: AsRef<FormatSizeOptions>> IFormatter<V, O> {
pub fn new(value: V, options: O) -> Self {
IFormatter{value: value, options}
IFormatter{value, options}
}
}

View file

@ -4,7 +4,7 @@
mod defaults;
pub use self::defaults::*;
#[derive(Debug, PartialEq, Copy, Clone)]
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
/// Holds the standard to use when displaying the size.
pub enum Kilo {
/// The decimal scale and units. SI standard.