From a7cd8b86d3aec033a234e87e29b4d0eeac81303e Mon Sep 17 00:00:00 2001 From: psykose Date: Tue, 26 Nov 2024 14:10:11 +0100 Subject: [PATCH] nightly clippy --- src/model/song.rs | 1 - src/mpv/format.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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,