@@ -4,11 +4,11 @@ use crate::interactive::{
44 ByteVisualization , CursorDirection , CursorMode , DisplayOptions , EntryDataBundle , MarkEntryMode ,
55 SortMode ,
66} ;
7+ use anyhow:: Result ;
78use dua:: {
89 traverse:: { Traversal , TreeIndex } ,
910 WalkOptions , WalkResult ,
1011} ;
11- use failure:: Error ;
1212use std:: { collections:: BTreeMap , io, path:: PathBuf } ;
1313use termion:: { event:: Key , input:: TermRead } ;
1414use tui:: backend:: Backend ;
@@ -51,7 +51,7 @@ impl AppState {
5151 traversal : & Traversal ,
5252 display : DisplayOptions ,
5353 terminal : & mut Terminal < B > ,
54- ) -> Result < ( ) , Error >
54+ ) -> Result < ( ) >
5555 where
5656 B : Backend ,
5757 {
@@ -69,8 +69,8 @@ impl AppState {
6969 traversal : & mut Traversal ,
7070 display : & mut DisplayOptions ,
7171 terminal : & mut Terminal < B > ,
72- keys : impl Iterator < Item = Result < Key , io:: Error > > ,
73- ) -> Result < ProcessingResult , Error >
72+ keys : impl Iterator < Item = std :: result :: Result < Key , io:: Error > > ,
73+ ) -> Result < ProcessingResult >
7474 where
7575 B : Backend ,
7676 {
@@ -159,7 +159,7 @@ pub fn draw_window<B>(
159159 window : & mut MainWindow ,
160160 props : MainWindowProps ,
161161 terminal : & mut Terminal < B > ,
162- ) -> Result < ( ) , Error >
162+ ) -> Result < ( ) >
163163where
164164 B : Backend ,
165165{
@@ -183,8 +183,8 @@ impl TerminalApp {
183183 pub fn process_events < B > (
184184 & mut self ,
185185 terminal : & mut Terminal < B > ,
186- keys : impl Iterator < Item = Result < Key , io:: Error > > ,
187- ) -> Result < WalkResult , Error >
186+ keys : impl Iterator < Item = std :: result :: Result < Key , io:: Error > > ,
187+ ) -> Result < WalkResult >
188188 where
189189 B : Backend ,
190190 {
@@ -204,7 +204,7 @@ impl TerminalApp {
204204 options : WalkOptions ,
205205 input : Vec < PathBuf > ,
206206 mode : Interaction ,
207- ) -> Result < Option < KeyboardInputAndApp > , Error >
207+ ) -> Result < Option < KeyboardInputAndApp > >
208208 where
209209 B : Backend ,
210210 {
0 commit comments