Formatting
This commit is contained in:
parent
089088d1ee
commit
10c234e92f
1 changed files with 16 additions and 17 deletions
|
@ -591,9 +591,7 @@ fn _get_test_index(name: &str) -> Index {
|
|||
let mut mount_points = HashMap::new();
|
||||
mount_points.insert("root".to_owned(), collection_path);
|
||||
|
||||
let vfs = Arc::new(Vfs::new(VfsConfig {
|
||||
mount_points: mount_points,
|
||||
}));
|
||||
let vfs = Arc::new(Vfs::new(VfsConfig { mount_points: mount_points }));
|
||||
|
||||
let mut index_config = IndexConfig::new();
|
||||
index_config.album_art_pattern = Some(Regex::new(r#"^Folder\.(png|jpg|jpeg)$"#).unwrap());
|
||||
|
@ -632,7 +630,8 @@ fn test_metadata() {
|
|||
let results = index.browse(target.as_path()).unwrap();
|
||||
|
||||
assert_eq!(results.len(), 7);
|
||||
assert_eq!(results[4], CollectionFile::Song(Song{
|
||||
assert_eq!(results[4],
|
||||
CollectionFile::Song(Song {
|
||||
path: song_path.to_str().unwrap().to_string(),
|
||||
track_number: Some(5),
|
||||
disc_number: None,
|
||||
|
|
Loading…
Add table
Reference in a new issue