@@ -212,7 +212,7 @@ impl BindingsBuilder {
212
212
self . collect_nodes ( link_nodes, & mut nodes) ;
213
213
214
214
for cmd in nodes {
215
- match & * * cmd {
215
+ match cmd {
216
216
BindingKind :: Empty ( name) => {
217
217
bindings. push_empty ( name) ;
218
218
}
@@ -272,12 +272,7 @@ impl BindingsBuilder {
272
272
nested. extend ( nested_refs. into_iter ( ) . map ( |iter| self . build_inner ( iter) ) ) ;
273
273
}
274
274
275
- fn collect_nodes_ref < ' a > (
276
- & ' a self ,
277
- id : usize ,
278
- len : usize ,
279
- nodes : & mut Vec < & ' a Rc < BindingKind > > ,
280
- ) {
275
+ fn collect_nodes_ref < ' a > ( & ' a self , id : usize , len : usize , nodes : & mut Vec < & ' a BindingKind > ) {
281
276
self . nodes [ id] . iter ( ) . take ( len) . for_each ( |it| match it {
282
277
LinkNode :: Node ( it) => nodes. push ( it) ,
283
278
LinkNode :: Parent { idx, len } => self . collect_nodes_ref ( * idx, * len, nodes) ,
@@ -287,7 +282,7 @@ impl BindingsBuilder {
287
282
fn collect_nodes < ' a > (
288
283
& ' a self ,
289
284
link_nodes : & ' a [ LinkNode < Rc < BindingKind > > ] ,
290
- nodes : & mut Vec < & ' a Rc < BindingKind > > ,
285
+ nodes : & mut Vec < & ' a BindingKind > ,
291
286
) {
292
287
link_nodes. iter ( ) . for_each ( |it| match it {
293
288
LinkNode :: Node ( it) => nodes. push ( it) ,
0 commit comments