Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3236dc

Browse files
committed
fmt
1 parent 8aaa05a commit b3236dc

7 files changed

Lines changed: 18 additions & 15 deletions

File tree

src/interactive/app/bytevis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use dua::{ByteFormat};
1+
use dua::ByteFormat;
22
use std::fmt;
33

44
#[derive(Default, Clone, Copy)]

src/interactive/app/eventloop.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use crate::{
44
app::navigation::Navigation,
55
app_state::FocussedPane,
66
sorted_entries,
7-
widgets::{glob_search, MainWindow, MainWindowProps}, CursorDirection, CursorMode, DisplayOptions,
8-
MarkEntryMode,
7+
widgets::{glob_search, MainWindow, MainWindowProps},
8+
CursorDirection, CursorMode, DisplayOptions, MarkEntryMode,
99
},
1010
};
1111
use anyhow::Result;
@@ -16,20 +16,16 @@ use dua::{
1616
traverse::{size_on_disk, EntryData, Traversal},
1717
WalkOptions, WalkResult,
1818
};
19-
use std::{
20-
time::{SystemTime, UNIX_EPOCH},
21-
};
19+
use std::time::{SystemTime, UNIX_EPOCH};
2220
use tui::backend::Backend;
2321
use tui_react::Terminal;
2422

23+
use super::app_state::{AppState, Cursor, ProcessingResult};
2524
use super::{
2625
app_state::{parent_or_panic, pop_or_panic, set_entry_info_or_panic, EntryInfo},
2726
terminal_app::TraversalEvent,
2827
tree_view::TreeView,
2928
};
30-
use super::{
31-
app_state::{AppState, Cursor, ProcessingResult},
32-
};
3329

3430
impl AppState {
3531
pub fn navigation_mut(&mut self) -> &mut Navigation {
@@ -355,7 +351,7 @@ impl AppState {
355351
self.traversal_state.received_event = true;
356352
}
357353
key
358-
},
354+
}
359355
Event::Resize(_, _) => refresh_key(),
360356
_ => return Ok(None),
361357
};

src/interactive/app/terminal_app.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ use tui_react::Terminal;
1313
use crate::{crossdev, interactive::widgets::MainWindow};
1414

1515
use super::{
16-
app_state::{AppState, ProcessingResult, TraversalState}, sorted_entries, DisplayOptions,
16+
app_state::{AppState, ProcessingResult, TraversalState},
17+
sorted_entries, DisplayOptions,
1718
};
1819

1920
/// State and methods representing the interactive disk usage analyser for the terminal

src/interactive/app/tests/journeys_readonly.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,11 @@ fn simple_user_journey_read_only() -> Result<()> {
303303
);
304304

305305
// when advancing the selection to the marker pane
306-
app.process_events(&mut terminal, into_keys(Some(KeyCode::Tab)), traversal_events)?;
306+
app.process_events(
307+
&mut terminal,
308+
into_keys(Some(KeyCode::Tab)),
309+
traversal_events,
310+
)?;
307311
{
308312
assert_eq!(
309313
Some(true),

src/interactive/app/tests/utils.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ use std::{
1919
use tui::backend::TestBackend;
2020
use tui_react::Terminal;
2121

22-
use crate::interactive::{app::tests::FIXTURE_PATH, terminal_app::{TerminalApp, TraversalEvent}};
22+
use crate::interactive::{
23+
app::tests::FIXTURE_PATH,
24+
terminal_app::{TerminalApp, TraversalEvent},
25+
};
2326

2427
pub fn into_keys<'a>(
2528
codes: impl IntoIterator<Item = KeyCode> + 'a,

src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use std::{fs, io, io::Write, path::PathBuf, process};
1010
use crate::interactive::input::input_channel;
1111
use crate::interactive::terminal_app::TerminalApp;
1212

13-
1413
mod crossdev;
1514
#[cfg(feature = "tui-crossplatform")]
1615
mod interactive;

src/traverse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{get_size_or_panic};
1+
use crate::get_size_or_panic;
22

33
use filesize::PathExt;
44
use petgraph::{graph::NodeIndex, stable_graph::StableGraph, Directed, Direction};

0 commit comments

Comments
 (0)