2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

Cargo fmt

This commit is contained in:
Aode (lion) 2021-09-06 12:09:25 -05:00
parent 0d5ce07b20
commit a0f7148924
2 changed files with 5 additions and 4 deletions

View file

@ -72,9 +72,8 @@ static TMP_DIR: Lazy<PathBuf> = Lazy::new(|| {
path
});
static CONFIG: Lazy<Config> = Lazy::new(Config::from_args);
static PROCESS_SEMAPHORE: Lazy<tokio::sync::Semaphore> = Lazy::new(|| tokio::sync::Semaphore::new(
num_cpus::get().saturating_sub(1).max(1),
));
static PROCESS_SEMAPHORE: Lazy<tokio::sync::Semaphore> =
Lazy::new(|| tokio::sync::Semaphore::new(num_cpus::get().saturating_sub(1).max(1)));
static PROCESS_MAP: Lazy<DashMap<PathBuf, Vec<Sender<(Details, web::Bytes)>>>> =
Lazy::new(DashMap::new);

View file

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