From 21bb2d127fe116a09ab1274f46153c06c17fbe90 Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Tue, 23 Jul 2024 23:37:48 -0400 Subject: [PATCH] Fix unused crate::database import --- src/songdata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?;