From 8e595f153a6dd2b4a1ec45ebae0d063c621673ca Mon Sep 17 00:00:00 2001 From: ttyS3 Date: Mon, 2 Dec 2024 12:50:46 +0000 Subject: [PATCH] refactor: improve code formatting in `mod.rs` and `logger.rs` --- src/commands/mod.rs | 1 - src/utils/logger.rs | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index e2e4890d..e7086024 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -52,7 +52,6 @@ pub fn run( question_policy: QuestionPolicy, file_visibility_policy: FileVisibilityPolicy, ) -> crate::Result<()> { - if let Some(threads) = args.threads { rayon::ThreadPoolBuilder::new() .num_threads(threads) diff --git a/src/utils/logger.rs b/src/utils/logger.rs index 60936c66..0de2dfda 100644 --- a/src/utils/logger.rs +++ b/src/utils/logger.rs @@ -1,5 +1,7 @@ -use std::sync::{mpsc, Arc, Barrier, OnceLock}; -use std::thread; +use std::{ + sync::{mpsc, Arc, Barrier, OnceLock}, + thread, +}; pub use logger_thread::spawn_logger_thread;