Ran cargo fmt, clippy fixes, suppressed some warns
I will start working on stack traces tonight and tomorrow. We need to be able to 'unwind' by finding calling functions.
This commit is contained in:
@@ -30,7 +30,7 @@ impl MemoryUnits {
|
||||
pub const fn convert(&mut self) {
|
||||
match self {
|
||||
Self::B(b) if *b > 1024 => *self = Self::KiB(*b / 1024),
|
||||
Self::KiB(kib) if *kib > 1024 => *self = Self::MiB(*kib / 1024),
|
||||
Self::KiB(kib) if *kib > 1024 => *self = Self::MiB(*kib / 1024),
|
||||
Self::MiB(mib) if *mib > 1024 => *self = Self::GiB(*mib / 1024),
|
||||
_ => (),
|
||||
}
|
||||
@@ -46,4 +46,4 @@ impl core::fmt::Display for MemoryUnits {
|
||||
Self::GiB(gib) => write!(f, "{} GiB", gib),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user