nightly clippy

This commit is contained in:
psykose 2024-11-26 14:10:11 +01:00
parent 3eb412d7b2
commit a7cd8b86d3
Signed by: psykose
SSH key fingerprint: SHA256:pRMVjV3kRB6zl+wNx+sV8KoMnPqQAW6v8dNCxsCGZv8
2 changed files with 1 additions and 2 deletions

View file

@ -96,7 +96,6 @@ impl Song {
if thumbnail_loading.is_none() { if thumbnail_loading.is_none() {
let id = self.id(); let id = self.id();
let song_weak = self.downgrade(); let song_weak = self.downgrade();
let scale_factor = scale_factor; // NOTE: assumed constant
*thumbnail_loading = Some(glib::spawn_future_local(async move { *thumbnail_loading = Some(glib::spawn_future_local(async move {
let _permit = SEM.acquire().await.unwrap(); let _permit = SEM.acquire().await.unwrap();

View file

@ -29,7 +29,7 @@ impl SetProperty for String {
} }
} }
impl<'a> SetProperty for &'a str { impl SetProperty for &str {
unsafe fn set_property( unsafe fn set_property(
self, self,
ctx: *mut ffi::mpv_handle, ctx: *mut ffi::mpv_handle,