HumanByte: make fields public

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2023-10-16 12:27:28 +02:00
parent 9e8f90e667
commit 83af1cdce4

View File

@ -124,9 +124,9 @@ fn strip_unit(v: &str) -> (&str, SizeUnit) {
#[derive(Debug, Copy, Clone, UpdaterType, PartialEq)]
pub struct HumanByte {
/// The siginficant value, it does not includes any factor of the `unit`
size: f64,
pub size: f64,
/// The scale/unit of the value
unit: SizeUnit,
pub unit: SizeUnit,
}
fn verify_human_byte(s: &str) -> Result<(), Error> {