Skip to content

Commit 1e8e710

Browse files
committed
refactor: re-arrange
1 parent f69c684 commit 1e8e710

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/app.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@ pub struct App {
3030
args: Args,
3131
}
3232

33-
/// Tree-shaping options applied to a deserialized `--json-input` tree before visualization.
34-
#[derive(Clone, Copy)]
35-
struct JsonInputShaping {
36-
/// Maximum number of levels to display.
37-
max_depth: u64,
38-
/// Minimal size proportion required to appear.
39-
min_ratio: f32,
40-
/// Whether to preserve the input order of the entries.
41-
no_sort: bool,
42-
}
43-
4433
/// Geometry options that control how the chart is laid out.
4534
#[derive(Clone, Copy)]
4635
struct ChartLayout {
@@ -52,6 +41,17 @@ struct ChartLayout {
5241
bar_alignment: BarAlignment,
5342
}
5443

44+
/// Tree-shaping options applied to a deserialized `--json-input` tree before visualization.
45+
#[derive(Clone, Copy)]
46+
struct JsonInputShaping {
47+
/// Maximum number of levels to display.
48+
max_depth: u64,
49+
/// Minimal size proportion required to appear.
50+
min_ratio: f32,
51+
/// Whether to preserve the input order of the entries.
52+
no_sort: bool,
53+
}
54+
5555
impl App {
5656
/// Initialize the application from the environment.
5757
pub fn from_env() -> Self {

0 commit comments

Comments
 (0)