diff --git a/src/main.rs b/src/main.rs index 20f835a..b06279b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -115,8 +115,8 @@ impl From for eframe::epaint::Color32 { } impl Song { - pub fn try_new(gd_song: gd::Song) -> Result { - if let gd::Song::Newgrounds { id } = gd_song { + pub fn try_new(gd_song: &gd::Song) -> Result { + if let &gd::Song::Newgrounds { id } = gd_song { let song_response = gd_song.get_response(); let song_path = gd::save_path().join(format!("{id}.mp3"));