From 11ee5c056352e994e63565c3899a3adb86f6c392 Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Thu, 27 Feb 2020 17:12:55 +0100 Subject: [PATCH] catalog: derive PartEq for equality checks of two DirEntry's. Signed-off-by: Christian Ebner --- src/backup/catalog.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backup/catalog.rs b/src/backup/catalog.rs index 9cbf275b..a8f11776 100644 --- a/src/backup/catalog.rs +++ b/src/backup/catalog.rs @@ -56,14 +56,14 @@ impl fmt::Display for CatalogEntryType { /// /// The ``attr`` property contain the exact type with type specific /// attributes. -#[derive(Clone)] +#[derive(Clone, PartialEq)] pub struct DirEntry { pub name: Vec, pub attr: DirEntryAttribute, } /// Used to specific additional attributes inside DirEntry -#[derive(Clone)] +#[derive(Clone, PartialEq)] pub enum DirEntryAttribute { Directory { start: u64 }, File { size: u64, mtime: u64 },