summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-03 22:27:18 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-03 22:27:18 +0530
commit2aad00a568b31120144a16e80965be0495cf036f (patch)
treec9c3d62058ea8ffb355834870947a90083ec4b0d /tests
parentb255e63193cbb5e8e09c169334df2b2c35e2a5e7 (diff)
Removed support to change amount of storable nodes
Diffstat (limited to 'tests')
-rw-r--r--tests/interactive.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/interactive.rs b/tests/interactive.rs
index 6ade220..6ad4213 100644
--- a/tests/interactive.rs
+++ b/tests/interactive.rs
@@ -1,18 +1,15 @@
mod app {
use dua::{
interactive::{widgets::SortMode, TerminalApp},
- traverse::{EntryData, Tree, TreeIndex, TreeIndexType},
+ traverse::{EntryData, Tree, TreeIndex},
ByteFormat, Color, TraversalSorting, WalkOptions,
};
use failure::Error;
use petgraph::prelude::NodeIndex;
use pretty_assertions::assert_eq;
- use std::ffi::OsStr;
- use std::path::PathBuf;
- use std::{ffi::OsString, fmt, path::Path};
+ use std::{ffi::OsStr, ffi::OsString, fmt, path::Path, path::PathBuf};
use termion::input::TermRead;
- use tui::backend::TestBackend;
- use tui::Terminal;
+ use tui::{backend::TestBackend, Terminal};
const FIXTURE_PATH: &'static str = "tests/fixtures";
@@ -315,8 +312,7 @@ mod app {
fn make_add_node<'a>(
t: &'a mut Tree,
- ) -> impl FnMut(&str, u64, Option<NodeIndex<TreeIndexType>>) -> NodeIndex<TreeIndexType> + 'a
- {
+ ) -> impl FnMut(&str, u64, Option<NodeIndex>) -> NodeIndex + 'a {
move |name, size, maybe_from_idx| {
let n = t.add_node(EntryData {
name: OsString::from(name),