summaryrefslogtreecommitdiffstats
path: root/src/traverse.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-05 09:20:38 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-05 09:20:38 +0530
commit7483ddb97d754dea3415a4906082bcf0f85eb818 (patch)
treef437477d40b390adc2c45a0e100f67efd0f6869b /src/traverse.rs
parent4a1220eabf30db015463312000be7a2574c6e582 (diff)
step 1: we store entries as we enter/exit nodes
Diffstat (limited to 'src/traverse.rs')
-rw-r--r--src/traverse.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/traverse.rs b/src/traverse.rs
index 3690c1e..d6ef957 100644
--- a/src/traverse.rs
+++ b/src/traverse.rs
@@ -7,7 +7,7 @@ use std::{ffi::OsString, path::PathBuf, time::Duration, time::Instant};
pub type TreeIndex = NodeIndex;
pub type Tree = Graph<EntryData, (), Directed>;
-#[derive(Eq, PartialEq, Debug, Default)]
+#[derive(Eq, PartialEq, Debug, Default, Clone)]
pub struct EntryData {
pub name: OsString,
/// The entry's size in bytes. If it's a directory, the size is the aggregated file size of all children