diff --git a/src/model/song.rs b/src/model/song.rs index 7109ad8..fa83a8c 100644 --- a/src/model/song.rs +++ b/src/model/song.rs @@ -96,7 +96,6 @@ impl Song { if thumbnail_loading.is_none() { let id = self.id(); let song_weak = self.downgrade(); - let scale_factor = scale_factor; // NOTE: assumed constant *thumbnail_loading = Some(glib::spawn_future_local(async move { let _permit = SEM.acquire().await.unwrap(); diff --git a/src/mpv/format.rs b/src/mpv/format.rs index b37813c..f1e5f02 100644 --- a/src/mpv/format.rs +++ b/src/mpv/format.rs @@ -29,7 +29,7 @@ impl SetProperty for String { } } -impl<'a> SetProperty for &'a str { +impl SetProperty for &str { unsafe fn set_property( self, ctx: *mut ffi::mpv_handle,