Fix unused crate::database import

This commit is contained in:
Ethan Girouard 2024-07-23 23:37:48 -04:00
parent 76631126de
commit 21bb2d127f
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146

View File

@ -1,4 +1,3 @@
use crate::database;
use crate::models::{Album, Artist, Song};
use time::Date;
@ -39,6 +38,7 @@ impl TryInto<SongData> 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<SongData, Self::Error> {
use crate::database;
let mut db_con = database::get_db_conn();
let album = self.get_album(&mut db_con)?;