This commit is contained in:
Antoine Gersant 2024-07-10 23:17:38 -07:00
parent 7279793d25
commit 11775d961b
2 changed files with 1 additions and 3 deletions

View file

@ -14,7 +14,6 @@ mod update;
pub use self::query::*;
pub use self::types::*;
pub use self::update::*;
#[derive(Clone)]
pub struct Index {

View file

@ -98,8 +98,7 @@ impl Manager {
}
}
let mut new_songs: Vec<NewPlaylistSong> = Vec::new();
new_songs.reserve(content.len());
let mut new_songs: Vec<NewPlaylistSong> = Vec::with_capacity(content.len());
for (i, path) in content.iter().enumerate() {
let virtual_path = Path::new(&path);