From 6dba01504351a3f883ffc95b99a32beec1279f1f Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Thu, 14 Nov 2019 17:42:18 +0100 Subject: [PATCH] src/backup/catalog.rs: derive Clone for DirEntry and DirEntryAttribute This is needed in order to explicitly clone the values when needed in the catalog shell implementation. Signed-off-by: Christian Ebner --- src/backup/catalog.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backup/catalog.rs b/src/backup/catalog.rs index 70e997ba..03c915b9 100644 --- a/src/backup/catalog.rs +++ b/src/backup/catalog.rs @@ -53,12 +53,14 @@ impl fmt::Display for CatalogEntryType { /// /// The ``attr`` property contain the exact type with type specific /// attributes. +#[derive(Clone)] pub struct DirEntry { pub name: Vec, pub attr: DirEntryAttribute, } /// Used to specific additional attributes inside DirEntry +#[derive(Clone)] pub enum DirEntryAttribute { Directory { start: u64 }, File { size: u64, mtime: u64 },