mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-27 02:27:42 +00:00
use derive 'Default' for ChunkOrder
instead of hardcoding the default deep inside the code. This makes it much easier to see what is the actual default the first instance of ChunkOrder::None was only for the test case, were the ordering doe not matter Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
854fb5c08f
commit
d70ae30a43
@ -158,13 +158,14 @@ pub const PRUNE_SCHEMA_KEEP_YEARLY: Schema =
|
||||
.schema();
|
||||
|
||||
#[api]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
/// The order to sort chunks by
|
||||
pub enum ChunkOrder {
|
||||
/// Iterate chunks in the index order
|
||||
None,
|
||||
/// Iterate chunks in inode order
|
||||
#[default]
|
||||
Inode,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user