Fix unused crate::database import
This commit is contained in:
parent
76631126de
commit
21bb2d127f
@ -1,4 +1,3 @@
|
|||||||
use crate::database;
|
|
||||||
use crate::models::{Album, Artist, Song};
|
use crate::models::{Album, Artist, Song};
|
||||||
|
|
||||||
use time::Date;
|
use time::Date;
|
||||||
@ -39,6 +38,7 @@ impl TryInto<SongData> for Song {
|
|||||||
/// The SongData/Song conversions are also not truly reversible,
|
/// The SongData/Song conversions are also not truly reversible,
|
||||||
/// due to the way the image_path, album, and artist data is handled.
|
/// due to the way the image_path, album, and artist data is handled.
|
||||||
fn try_into(self) -> Result<SongData, Self::Error> {
|
fn try_into(self) -> Result<SongData, Self::Error> {
|
||||||
|
use crate::database;
|
||||||
let mut db_con = database::get_db_conn();
|
let mut db_con = database::get_db_conn();
|
||||||
|
|
||||||
let album = self.get_album(&mut db_con)?;
|
let album = self.get_album(&mut db_con)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user