small reformatting

This commit is contained in:
2026-09-09 11:27:33 +03:00
parent 903dd3e44b
commit 6cef2a65de
+3 -2
View File
@@ -24,6 +24,7 @@ use std::{
collections::{HashMap, HashSet}, collections::{HashMap, HashSet},
fs, fs,
hash::{DefaultHasher, Hash, Hasher}, hash::{DefaultHasher, Hash, Hasher},
io::BufReader,
path::{Path, PathBuf}, path::{Path, PathBuf},
sync::{Arc, Mutex}, sync::{Arc, Mutex},
thread, thread,
@@ -171,9 +172,9 @@ impl SoundpadGui {
// 1. Try to load from disk cache if we don't have it in memory yet // 1. Try to load from disk cache if we don't have it in memory yet
if !is_cached if !is_cached
&& let Ok(file) = std::fs::File::open(&cache_file) && let Ok(file) = fs::File::open(&cache_file)
&& let Ok((all_files, dir_updates)) = && let Ok((all_files, dir_updates)) =
serde_json::from_reader(std::io::BufReader::new(file)) serde_json::from_reader(BufReader::new(file))
{ {
finished_scans.lock().unwrap().push(( finished_scans.lock().unwrap().push((
path_clone.clone(), path_clone.clone(),