Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fksms committed May 2, 2024
1 parent 3d30120 commit 533b25f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ use utils::get_filesystem_devices;
use utils::simplify_dir_names;

use crate::node::Node;
use chrono::Local;
use std::fs::File;
use std::io::Write;
use chrono::Local;

static DEFAULT_NUMBER_OF_LINES: usize = 30;
static DEFAULT_TERMINAL_WIDTH: usize = 80;
Expand Down Expand Up @@ -239,7 +239,9 @@ fn main() {
let result = output_json(&output_filename, &top_level_nodes);
match result {
Ok(..) => {}
Err(err) => { eprintln!("Error: {}", err) }
Err(err) => {
eprintln!("Error: {}", err)
}
}
}

Expand Down Expand Up @@ -346,4 +348,4 @@ fn output_json(output_filename: &str, top_level_nodes: &Vec<Node>) -> std::io::R
let mut file = File::create(output_filename)?;
file.write_all(serialized.as_bytes())?;
Ok(())
}
}
2 changes: 1 addition & 1 deletion src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use crate::utils::is_filtered_out_due_to_invert_regex;
use crate::utils::is_filtered_out_due_to_regex;

use regex::Regex;
use serde::Serialize;
use std::cmp::Ordering;
use std::path::PathBuf;
use serde::Serialize;

#[derive(Debug, Eq, Clone, Serialize)]
pub struct Node {
Expand Down

0 comments on commit 533b25f

Please sign in to comment.