From a0f7148924b4db384da0349854b9cff42bf99f5d Mon Sep 17 00:00:00 2001 From: "Aode (lion)" Date: Mon, 6 Sep 2021 12:09:25 -0500 Subject: [PATCH] Cargo fmt --- src/main.rs | 5 ++--- src/migrate/s034.rs | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index f7d1c7d..2112f72 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,9 +72,8 @@ static TMP_DIR: Lazy = Lazy::new(|| { path }); static CONFIG: Lazy = Lazy::new(Config::from_args); -static PROCESS_SEMAPHORE: Lazy = Lazy::new(|| tokio::sync::Semaphore::new( - num_cpus::get().saturating_sub(1).max(1), -)); +static PROCESS_SEMAPHORE: Lazy = + Lazy::new(|| tokio::sync::Semaphore::new(num_cpus::get().saturating_sub(1).max(1))); static PROCESS_MAP: Lazy>>> = Lazy::new(DashMap::new); diff --git a/src/migrate/s034.rs b/src/migrate/s034.rs index a5f7793..e24cf60 100644 --- a/src/migrate/s034.rs +++ b/src/migrate/s034.rs @@ -80,6 +80,8 @@ impl SledTree for sled034::Tree { } fn flush(&self) -> Result<(), UploadError> { - sled034::Tree::flush(self).map(|_| ()).map_err(UploadError::from) + sled034::Tree::flush(self) + .map(|_| ()) + .map_err(UploadError::from) } }