mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-05 02:55:31 +00:00
refactor: improve code formatting in mod.rs
and logger.rs
This commit is contained in:
parent
77b01d170f
commit
e1d7f1424a
@ -53,7 +53,6 @@ pub fn run(
|
|||||||
question_policy: QuestionPolicy,
|
question_policy: QuestionPolicy,
|
||||||
file_visibility_policy: FileVisibilityPolicy,
|
file_visibility_policy: FileVisibilityPolicy,
|
||||||
) -> crate::Result<()> {
|
) -> crate::Result<()> {
|
||||||
|
|
||||||
if let Some(threads) = args.threads {
|
if let Some(threads) = args.threads {
|
||||||
rayon::ThreadPoolBuilder::new()
|
rayon::ThreadPoolBuilder::new()
|
||||||
.num_threads(threads)
|
.num_threads(threads)
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
use std::sync::{mpsc, Arc, Barrier, OnceLock};
|
use std::{
|
||||||
use std::thread;
|
sync::{mpsc, Arc, Barrier, OnceLock},
|
||||||
|
thread,
|
||||||
|
};
|
||||||
|
|
||||||
pub use logger_thread::spawn_logger_thread;
|
pub use logger_thread::spawn_logger_thread;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user