File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ where
139
139
// This works like `extend`, but `Vec::append` is more efficient.
140
140
let list = super :: extend:: collect ( par_iter) ;
141
141
self . reserve ( super :: extend:: len ( & list) ) ;
142
- for ref mut vec in list {
143
- self . append ( vec) ;
142
+ for mut vec in list {
143
+ self . append ( & mut vec) ;
144
144
}
145
145
}
146
146
}
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ fn as_list<T>(item: T) -> LinkedList<T> {
43
43
list
44
44
}
45
45
46
- fn list_append < T > ( mut list1 : LinkedList < T > , ref mut list2: LinkedList < T > ) -> LinkedList < T > {
47
- list1. append ( list2) ;
46
+ fn list_append < T > ( mut list1 : LinkedList < T > , mut list2 : LinkedList < T > ) -> LinkedList < T > {
47
+ list1. append ( & mut list2) ;
48
48
list1
49
49
}
50
50
You can’t perform that action at this time.
0 commit comments