1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 14:51:04 +02:00

refactor: fix latest clippy warnings

This commit is contained in:
Jake Stanger 2024-05-11 20:55:43 +01:00
parent f78a062f3a
commit 04a694e2ad
5 changed files with 24 additions and 24 deletions

View file

@ -40,7 +40,7 @@ impl Item {
let id = info.id;
if self.windows.is_empty() {
self.name = info.title.clone();
self.name.clone_from(&info.title);
}
let window = Window::from(info);
@ -59,7 +59,7 @@ impl Item {
pub fn set_window_name(&mut self, window_id: usize, name: String) {
if let Some(window) = self.windows.get_mut(&window_id) {
if let OpenState::Open { focused: true, .. } = window.open_state {
self.name = name.clone();
self.name.clone_from(&name);
}
window.name = name;