@@ -68,11 +68,9 @@ impl Clone for Explicit {
6868impl Default for Explicit {
6969 fn default ( ) -> Self {
7070 Explicit {
71- v : < Value < i32 > > :: default ( ) ,
71+ v : Rc :: new ( RefCell :: new ( 0_i32 ) ) ,
7272 inner : <Value < Inner > >:: default ( ) ,
73- arr : Rc :: new ( RefCell :: new (
74- ( 0 ..2 ) . map ( |_| <i32 >:: default ( ) ) . collect :: < Box < [ i32 ] > > ( ) ,
75- ) ) ,
73+ arr : Rc :: new ( RefCell :: new ( ( 0 ..2 ) . map ( |_| 0_i32 ) . collect :: < Box < [ i32 ] > > ( ) ) ) ,
7674 }
7775 }
7876}
@@ -115,11 +113,9 @@ impl Clone for Implicit {
115113impl Default for Implicit {
116114 fn default ( ) -> Self {
117115 Implicit {
118- v : < Value < i32 > > :: default ( ) ,
116+ v : Rc :: new ( RefCell :: new ( 0_i32 ) ) ,
119117 inner : <Value < Inner > >:: default ( ) ,
120- arr : Rc :: new ( RefCell :: new (
121- ( 0 ..2 ) . map ( |_| <i32 >:: default ( ) ) . collect :: < Box < [ i32 ] > > ( ) ,
122- ) ) ,
118+ arr : Rc :: new ( RefCell :: new ( ( 0 ..2 ) . map ( |_| 0_i32 ) . collect :: < Box < [ i32 ] > > ( ) ) ) ,
123119 }
124120 }
125121}
@@ -283,10 +279,8 @@ impl Default for Buffer {
283279 Buffer {
284280 data : Rc :: new ( RefCell :: new ( Default :: default ( ) ) ) ,
285281 rows : Rc :: new ( RefCell :: new ( Vec :: new ( ) ) ) ,
286- n : <Value < i32 > >:: default ( ) ,
287- arr : Rc :: new ( RefCell :: new (
288- ( 0 ..2 ) . map ( |_| <i32 >:: default ( ) ) . collect :: < Box < [ i32 ] > > ( ) ,
289- ) ) ,
282+ n : Rc :: new ( RefCell :: new ( 0_i32 ) ) ,
283+ arr : Rc :: new ( RefCell :: new ( ( 0 ..2 ) . map ( |_| 0_i32 ) . collect :: < Box < [ i32 ] > > ( ) ) ) ,
290284 }
291285 }
292286}
@@ -340,10 +334,8 @@ impl Default for Owner {
340334 fn default ( ) -> Self {
341335 Owner {
342336 data : Rc :: new ( RefCell :: new ( Default :: default ( ) ) ) ,
343- n : <Value < i32 > >:: default ( ) ,
344- arr : Rc :: new ( RefCell :: new (
345- ( 0 ..2 ) . map ( |_| <i32 >:: default ( ) ) . collect :: < Box < [ i32 ] > > ( ) ,
346- ) ) ,
337+ n : Rc :: new ( RefCell :: new ( 0_i32 ) ) ,
338+ arr : Rc :: new ( RefCell :: new ( ( 0 ..2 ) . map ( |_| 0_i32 ) . collect :: < Box < [ i32 ] > > ( ) ) ) ,
347339 p : Rc :: new ( RefCell :: new ( None ) ) ,
348340 }
349341 }
0 commit comments