diff --git a/src/songdata.rs b/src/songdata.rs index 6bd6f22..23ce415 100644 --- a/src/songdata.rs +++ b/src/songdata.rs @@ -1,4 +1,3 @@ -use crate::database; use crate::models::{Album, Artist, Song}; use time::Date; @@ -39,6 +38,7 @@ impl TryInto for Song { /// The SongData/Song conversions are also not truly reversible, /// due to the way the image_path, album, and artist data is handled. fn try_into(self) -> Result { + use crate::database; let mut db_con = database::get_db_conn(); let album = self.get_album(&mut db_con)?;