summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-02 18:50:37 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-02 18:50:37 +0530
commitd4918ba23cd0a73a7d5c5ec419777261b5a30228 (patch)
treeb5b8bb16b041f4ed6a96e1fef82fa4c43183fb16 /tests
parent59b2930fb719954d793efa7bc586d61098d6ee21 (diff)
refactor - still ain't pretty, but it's good enough for now
Diffstat (limited to 'tests')
-rw-r--r--tests/interactive.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/interactive.rs b/tests/interactive.rs
index 62f3aef..849ffa3 100644
--- a/tests/interactive.rs
+++ b/tests/interactive.rs
@@ -1,5 +1,5 @@
mod app {
- use dua::interactive::{EntryData, GraphIndexType, TerminalApp, Tree};
+ use dua::interactive::{EntryData, TerminalApp, Tree, TreeIndexType};
use dua::{ByteFormat, Color, Sorting, WalkOptions};
use failure::Error;
use petgraph::prelude::NodeIndex;
@@ -123,7 +123,7 @@ mod app {
fn make_add_node<'a>(
t: &'a mut Tree,
- ) -> impl FnMut(&str, u64, Option<NodeIndex<GraphIndexType>>) -> NodeIndex<GraphIndexType> + 'a
+ ) -> impl FnMut(&str, u64, Option<NodeIndex<TreeIndexType>>) -> NodeIndex<TreeIndexType> + 'a
{
move |name, size, maybe_from_idx| {
let n = t.add_node(EntryData {