Skip to content

Commit

Permalink
clippy::toplevel_ref_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Aug 15, 2019
1 parent b216c3e commit 3cd762e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/iter/collect/mod.rs
Expand Up @@ -139,8 +139,8 @@ where
// This works like `extend`, but `Vec::append` is more efficient.
let list = super::extend::collect(par_iter);
self.reserve(super::extend::len(&list));
for ref mut vec in list {
self.append(vec);
for mut vec in list {
self.append(&mut vec);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/iter/extend.rs
Expand Up @@ -43,8 +43,8 @@ fn as_list<T>(item: T) -> LinkedList<T> {
list
}

fn list_append<T>(mut list1: LinkedList<T>, ref mut list2: LinkedList<T>) -> LinkedList<T> {
list1.append(list2);
fn list_append<T>(mut list1: LinkedList<T>, mut list2: LinkedList<T>) -> LinkedList<T> {
list1.append(&mut list2);
list1
}

Expand Down

0 comments on commit 3cd762e

Please sign in to comment.