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

@ -101,7 +101,7 @@ pub(crate) fn iced_settings<App: Application>(
autosize: settings.autosize,
client_decorations: settings.client_decorations,
resizable: settings.resizable,
size: (settings.size.width as u32, settings.size.height as u32).into(),
size: (settings.size.width as u32, settings.size.height as u32),
size_limits: settings.size_limits,
title: None,
transparent: settings.transparent,
@ -567,9 +567,7 @@ impl<App: Application> ApplicationExt for App {
#[cfg(not(feature = "multi-window"))]
fn set_window_title(&mut self, title: String) -> iced::Command<Message<Self::Message>> {
self.core_mut()
.title
.insert(window::Id::MAIN, title.clone());
self.core_mut().title.insert(window::Id::MAIN, title);
iced::Command::none()
}