mirror of
https://github.com/Dangoware/dmp-core.git
synced 2025-04-19 17:42:55 -05:00
removed broken imports
This commit is contained in:
parent
6da574e7cb
commit
2d0464a993
3 changed files with 1 additions and 9 deletions
|
@ -20,9 +20,4 @@ pub mod music_storage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod music_controller {
|
|
||||||
pub mod config;
|
|
||||||
pub mod controller;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub mod music_player;
|
pub mod music_player;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use super::music_collection::MusicCollection;
|
use super::music_collection::MusicCollection;
|
||||||
// Crate things
|
// Crate things
|
||||||
use super::utils::{find_images, normalize, read_library, write_library};
|
use super::utils::{find_images, normalize, read_library, write_library};
|
||||||
use crate::music_controller::config::Config;
|
|
||||||
|
|
||||||
// Various std things
|
// Various std things
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
|
|
|
@ -6,7 +6,6 @@ use super::{
|
||||||
library::{self, AlbumArt, Song, Tag},
|
library::{self, AlbumArt, Song, Tag},
|
||||||
music_collection::MusicCollection,
|
music_collection::MusicCollection,
|
||||||
};
|
};
|
||||||
use crate::music_controller::config::Config;
|
|
||||||
use crate::music_storage::db_reader::xml::reader::XmlLibrary;
|
use crate::music_storage::db_reader::xml::reader::XmlLibrary;
|
||||||
|
|
||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
|
@ -86,7 +85,6 @@ impl<'a> Playlist<'a> {
|
||||||
.get_key_value(&Tag::Title)
|
.get_key_value(&Tag::Title)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.1
|
.1
|
||||||
.to_string()
|
|
||||||
.into(),
|
.into(),
|
||||||
),
|
),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
@ -149,7 +147,7 @@ fn list_to_m3u8() {
|
||||||
));
|
));
|
||||||
let mut a = Playlist::new();
|
let mut a = Playlist::new();
|
||||||
let c = lib.to_songs();
|
let c = lib.to_songs();
|
||||||
let mut b = c.iter().map({ |song| song }).collect::<Vec<&Song>>();
|
let mut b = c.iter().map( |song| song ).collect::<Vec<&Song>>();
|
||||||
a.tracks.append(&mut b);
|
a.tracks.append(&mut b);
|
||||||
a.to_m3u8()
|
a.to_m3u8()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue