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

@ -4,7 +4,7 @@
use cosmic_config::{Config, ConfigGet, ConfigSet};
fn test_config(config: Config) {
let watcher = config
let _watcher = config
.watch(|config, keys| {
println!("Changed: {:?}", keys);
for key in keys.iter() {

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(),

View file

@ -5,7 +5,7 @@ use cosmic::{
iced::{self, event, window},
iced_core::{id, Alignment, Length, Point},
iced_widget::{column, container, scrollable, text, text_input},
widget::{button, cosmic_container},
widget::button,
Command,
};