File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -203,12 +203,11 @@ impl BindingsBuilder {
203
203
}
204
204
205
205
fn build ( self , idx : & BindingsIdx ) -> Bindings {
206
- let mut bindings = Bindings :: default ( ) ;
207
- self . build_inner ( & mut bindings, & self . nodes [ idx. 0 ] ) ;
208
- bindings
206
+ self . build_inner ( & self . nodes [ idx. 0 ] )
209
207
}
210
208
211
- fn build_inner ( & self , bindings : & mut Bindings , link_nodes : & [ LinkNode < Rc < BindingKind > > ] ) {
209
+ fn build_inner ( & self , link_nodes : & [ LinkNode < Rc < BindingKind > > ] ) -> Bindings {
210
+ let mut bindings = Bindings :: default ( ) ;
212
211
let mut nodes = Vec :: new ( ) ;
213
212
self . collect_nodes ( link_nodes, & mut nodes) ;
214
213
@@ -246,6 +245,8 @@ impl BindingsBuilder {
246
245
}
247
246
}
248
247
}
248
+
249
+ bindings
249
250
}
250
251
251
252
fn collect_nested_ref < ' a > (
@@ -270,8 +271,7 @@ impl BindingsBuilder {
270
271
nested_refs. push ( last) ;
271
272
272
273
nested_refs. into_iter ( ) . for_each ( |iter| {
273
- let mut child_bindings = Bindings :: default ( ) ;
274
- self . build_inner ( & mut child_bindings, iter) ;
274
+ let child_bindings = self . build_inner ( iter) ;
275
275
nested. push ( child_bindings)
276
276
} )
277
277
}
You can’t perform that action at this time.
0 commit comments