Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrwach committed Jan 8, 2024
1 parent 9eaa961 commit f74a40a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
8 changes: 3 additions & 5 deletions src/interactive/app/app_state.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
use std::time::Duration;


use dua::{
inodefilter::InodeFilter,
traverse::{RunningTraversal, Tree, TreeIndex},
Throttle, WalkResult,
traverse::{RunningTraversal}, WalkResult,
};
use petgraph::Direction;


use super::{navigation::Navigation, EntryDataBundle, SortMode};

Expand Down
6 changes: 2 additions & 4 deletions src/interactive/app/eventloop.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::{
crossdev,
interactive::{
app::navigation::Navigation,
app_state::FocussedPane,
Expand All @@ -9,16 +8,15 @@ use crate::{
},
};
use anyhow::Result;
use crossbeam::channel::{Receiver, Select};
use crossbeam::channel::{Receiver};
use crosstermion::crossterm::event::{KeyCode, KeyEvent, KeyEventKind, KeyModifiers};
use crosstermion::input::Event;
use dua::{
traverse::{size_on_disk, EntryData, ProcessEventResult, RunningTraversal, Traversal},
traverse::{EntryData, ProcessEventResult, RunningTraversal, Traversal},
WalkOptions, WalkResult,
};
use std::{
path::PathBuf,
time::{SystemTime, UNIX_EPOCH},
};
use tui::backend::Backend;
use tui_react::Terminal;
Expand Down
4 changes: 2 additions & 2 deletions src/interactive/app/terminal_app.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{path::PathBuf, sync::Arc};
use std::{path::PathBuf};

use anyhow::Result;
use crossbeam::channel::Receiver;
Expand All @@ -10,7 +10,7 @@ use dua::{
use tui::prelude::Backend;
use tui_react::Terminal;

use crate::{crossdev, interactive::widgets::MainWindow};
use crate::{interactive::widgets::MainWindow};

use super::{
app_state::{AppState, ProcessingResult},
Expand Down
4 changes: 2 additions & 2 deletions src/traverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ impl RunningTraversal {
})
}

pub fn process_event<'a>(
pub fn process_event(
&mut self,
t: &'a mut Traversal,
t: &mut Traversal,
event: TraversalEvent,
) -> ProcessEventResult {
match event {
Expand Down

0 comments on commit f74a40a

Please sign in to comment.