Code cleanup.

Converted rest of .clone() s on ref pointer to use the macro instead.
Stopped ignoring clippy clone_on_ref_pointer warnings since there shouldn't
be any, anymore.
This commit is contained in:
Jordan Petridis
2017-10-23 07:37:07 +03:00
parent 539a5eae2f
commit 9beea21a4f
8 changed files with 8 additions and 26 deletions
+2 -7
View File
@@ -1,5 +1,3 @@
#![cfg_attr(feature = "cargo-clippy", allow(clone_on_ref_ptr))]
use gtk;
use gtk::prelude::*;
@@ -116,12 +114,9 @@ pub fn populate_flowbox_no_store(
let pixbuf = get_pixbuf_from_path(img, title);
let f = create_flowbox_child(title, pixbuf.clone());
let db = db.clone();
let stack = stack.clone();
let parent = parent.clone();
f.connect_activate(move |_| {
f.connect_activate(clone!(db, stack, parent => move |_| {
on_flowbox_child_activate(&db, &stack, &parent, pixbuf.clone());
});
}));
flowbox.add(&f);
});
} else {