Cosmetic change

This commit is contained in:
Antoine Gersant 2017-07-01 12:05:13 -07:00
parent 11ff053b9d
commit f9562b5c8c

View file

@ -82,14 +82,14 @@ struct NewDirectory {
date_added: i32, date_added: i32,
} }
struct IndexBuilder<'db> { struct IndexBuilder<'conn> {
new_songs: Vec<NewSong>, new_songs: Vec<NewSong>,
new_directories: Vec<NewDirectory>, new_directories: Vec<NewDirectory>,
connection: &'db Mutex<SqliteConnection>, connection: &'conn Mutex<SqliteConnection>,
album_art_pattern: Regex, album_art_pattern: Regex,
} }
impl<'db> IndexBuilder<'db> { impl<'conn> IndexBuilder<'conn> {
fn new(connection: &Mutex<SqliteConnection>, album_art_pattern: Regex) -> Result<IndexBuilder> { fn new(connection: &Mutex<SqliteConnection>, album_art_pattern: Regex) -> Result<IndexBuilder> {
let mut new_songs = Vec::new(); let mut new_songs = Vec::new();
let mut new_directories = Vec::new(); let mut new_directories = Vec::new();