From fb7594e54625162403f8729ddb59401e80d2dc1b Mon Sep 17 00:00:00 2001 From: ge72mum Date: Wed, 19 Oct 2022 13:41:11 +0200 Subject: [PATCH] deleted redundant clone --- src/app/components/details/details.rs | 2 +- src/app/components/playlist_details/playlist_details.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/details/details.rs b/src/app/components/details/details.rs index b68481e0..ef6b4e9e 100644 --- a/src/app/components/details/details.rs +++ b/src/app/components/details/details.rs @@ -169,7 +169,7 @@ impl AlbumDetailsWidget { where F: Fn() + Clone + 'static, { - self.widget().header_widget.connect_copy(f.clone()); + self.widget().header_widget.connect_copy(f); } fn set_liked(&self, is_liked: bool) { diff --git a/src/app/components/playlist_details/playlist_details.rs b/src/app/components/playlist_details/playlist_details.rs index c1bdf41d..bce7f695 100644 --- a/src/app/components/playlist_details/playlist_details.rs +++ b/src/app/components/playlist_details/playlist_details.rs @@ -150,7 +150,7 @@ impl PlaylistDetailsWidget { where F: Fn() + Clone + 'static, { - self.widget().header_widget.connect_copy(f.clone()); + self.widget().header_widget.connect_copy(f); } }