Do not pass some things by value when not needed.

This commit is contained in:
Jordan Petridis
2018-04-29 19:27:40 +03:00
parent 8951a6e237
commit 00d9019f29
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ impl HomeView {
// Copy the vertical scrollbar adjustment from the old view into the new one.
sendcell
.try_get()
.map(|x| utils::smooth_scroll_to(self.scrolled_window.clone(), x.clone()));
.map(|x| utils::smooth_scroll_to(&self.scrolled_window, &x));
}
Ok(())
+1 -1
View File
@@ -165,7 +165,7 @@ impl ShowWidget {
// Copy the vertical scrollbar adjustment from the old view into the new one.
sendcell
.try_get()
.map(|x| utils::smooth_scroll_to(self.scrolled_window.clone(), x.clone()));
.map(|x| utils::smooth_scroll_to(&self.scrolled_window, &x));
}
Ok(())