remove redundant clones (clippy::redundant_clone)
This commit is contained in:
parent
74ee508427
commit
12a5804fa7
7 changed files with 14 additions and 17 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue