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
139139 // This works like `extend`, but `Vec::append` is more efficient.
140140 let list = super :: extend:: collect ( par_iter) ;
141141 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) ;
144144 }
145145 }
146146 }
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ fn as_list<T>(item: T) -> LinkedList<T> {
4343 list
4444}
4545
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) ;
4848 list1
4949}
5050
You can’t perform that action at this time.
0 commit comments