mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-09-20 22:23:31 +00:00
small reformatting
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user