mirror of
https://github.com/LeopoldArkham/humansize
synced 2024-11-12 23:27:07 +00:00
Clippy auto fix
This commit is contained in:
parent
f11da47922
commit
93a8a5572d
3 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue