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) } }