Fix coding issues
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2025-05-21 22:53:35 +02:00
parent 56ab7065ac
commit 53a8963fc4

View File

@ -40,7 +40,7 @@ pub struct FileDisk {
/// Disk name
pub name: String,
/// Disk size, in megabytes
size: usize,
pub size: usize,
/// Disk format
#[serde(flatten)]
pub format: DiskFormat,
@ -97,7 +97,6 @@ impl FileDisk {
}
// Check disk size
if !(constants::DISK_SIZE_MIN..=constants::DISK_SIZE_MAX).contains(&self.size) {
return Err(DisksError::Config("Disk size is invalid!").into());
}