Skip to content

Commit

Permalink
deleted redundant clone
Browse files Browse the repository at this point in the history
  • Loading branch information
ge72mum committed Oct 19, 2022
1 parent cddc09a commit fb7594e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/details/details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/playlist_details/playlist_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}
Expand Down

0 comments on commit fb7594e

Please sign in to comment.