Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
kenchou committed Aug 31, 2024
1 parent 6a47e80 commit 418e9f2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::path::PathBuf;
use std::env;
use std::path::PathBuf;

use clap::{arg, command, value_parser, ArgAction};

Expand Down
18 changes: 13 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use std::path::PathBuf;
use colored::*;
use walkdir::WalkDir;

mod cli;
mod data;
mod fnmatch_regex;
mod p2tree;
mod tprint;
mod pmatcher;
mod pconfig;
mod cli;
mod pmatcher;
mod tprint;
mod util;

fn main() -> std::io::Result<()> {
Expand Down Expand Up @@ -62,7 +62,11 @@ fn main() -> std::io::Result<()> {
if app_options.enable_renaming {
let new_filename = pattern_matcher.clean_filename(filename);
if new_filename != filename {
operation_list.push((filepath.to_path_buf(), new_filename, data::Operation::Rename));
operation_list.push((
filepath.to_path_buf(),
new_filename,
data::Operation::Rename,
));
continue;
}
}
Expand All @@ -78,7 +82,11 @@ fn main() -> std::io::Result<()> {
))
}

operation_list.push((filepath.to_path_buf(), "".to_string(), data::Operation::None));
operation_list.push((
filepath.to_path_buf(),
"".to_string(),
data::Operation::None,
));
}

if app_options.is_debug_mode() {
Expand Down
4 changes: 2 additions & 2 deletions src/p2tree.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::path::{Path,PathBuf};
use std::collections::HashMap;
use std::fs::read_link;
use std::path::{Path, PathBuf};

use nary_tree::{NodeId,TreeBuilder,Tree};
use colored::*;
use nary_tree::{NodeId, Tree, TreeBuilder};

use crate::data::Operation;

Expand Down

0 comments on commit 418e9f2

Please sign in to comment.