summaryrefslogtreecommitdiffstats
path: root/src/traverse.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-15 14:40:05 +0800
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-15 14:40:05 +0800
commita3627c8d04b2a755a1e466745c84591ae8e9033b (patch)
tree2539a27461b9f3b828b7a8afe9cc1c4826820c21 /src/traverse.rs
parent0fb99e00453da6d63cc01af64fdab8419314763b (diff)
Usage of StableGraph fixes logic thus far
Diffstat (limited to 'src/traverse.rs')
-rw-r--r--src/traverse.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/traverse.rs b/src/traverse.rs
index dc28579..5665bff 100644
--- a/src/traverse.rs
+++ b/src/traverse.rs
@@ -1,11 +1,10 @@
use crate::{get_size_or_panic, WalkOptions};
use failure::Error;
-use petgraph::graph::NodeIndex;
-use petgraph::{Directed, Direction, Graph};
+use petgraph::{graph::NodeIndex, stable_graph::StableGraph, Directed, Direction};
use std::{ffi::OsString, path::PathBuf, time::Duration, time::Instant};
pub type TreeIndex = NodeIndex;
-pub type Tree = Graph<EntryData, (), Directed>;
+pub type Tree = StableGraph<EntryData, (), Directed>;
#[derive(Eq, PartialEq, Debug, Default, Clone)]
pub struct EntryData {