remove redundant clones (clippy::redundant_clone)

This commit is contained in:
Daniel Eades 2023-12-10 16:30:53 +00:00
parent 74ee508427
commit 12a5804fa7
7 changed files with 14 additions and 17 deletions

View file

@ -8,7 +8,6 @@ use cosmic::{
font::load_fonts,
iced::{self, Application, Command, Length, Subscription},
iced::{
subscription,
widget::{self, column, container, horizontal_space, row, text},
window::{self, close, drag, minimize, toggle_maximize},
},
@ -306,10 +305,10 @@ impl Window {
]).into()
}
fn view_unimplemented_sub_page<'a, Message: Clone + From<Page> + 'static>(
&'a self,
fn view_unimplemented_sub_page<Message: Clone + From<Page> + 'static>(
&self,
sub_page: impl SubPage,
) -> Element<'a, Message> {
) -> Element<'_, Message> {
settings::view_column(vec![
self.parent_page_button(sub_page),
text("We haven't created that panel yet, and/or it is using a similar idea as current Pop! designs.").into(),