@@ -68,7 +68,7 @@ impl Results {
6868 rand_cap : uint ,
6969 f: || -> T ) { {
7070 let mut set = f ( ) ;
71- timed ( & mut self . sequential_ints , move || {
71+ timed ( & mut self . sequential_ints , || {
7272 for i in range ( 0 u, num_keys) {
7373 set. insert ( i) ;
7474 }
@@ -81,7 +81,7 @@ impl Results {
8181
8282 {
8383 let mut set = f ( ) ;
84- timed ( & mut self . random_ints , move || {
84+ timed ( & mut self . random_ints , || {
8585 for _ in range ( 0 , num_keys) {
8686 set. insert ( rng. gen :: < uint > ( ) % rand_cap) ;
8787 }
@@ -94,7 +94,7 @@ impl Results {
9494 set. insert ( i) ;
9595 }
9696
97- timed ( & mut self . delete_ints , move || {
97+ timed ( & mut self . delete_ints , || {
9898 for i in range ( 0 u, num_keys) {
9999 assert ! ( set. remove( & i) ) ;
100100 }
@@ -110,7 +110,7 @@ impl Results {
110110 f: || -> T ) {
111111 {
112112 let mut set = f ( ) ;
113- timed ( & mut self . sequential_strings , move || {
113+ timed ( & mut self . sequential_strings , || {
114114 for i in range ( 0 u, num_keys) {
115115 set. insert ( i. to_string ( ) ) ;
116116 }
@@ -123,7 +123,7 @@ impl Results {
123123
124124 {
125125 let mut set = f ( ) ;
126- timed ( & mut self . random_strings , move || {
126+ timed ( & mut self . random_strings , || {
127127 for _ in range ( 0 , num_keys) {
128128 let s = rng. gen :: < uint > ( ) . to_string ( ) ;
129129 set. insert ( s) ;
@@ -136,7 +136,7 @@ impl Results {
136136 for i in range ( 0 u, num_keys) {
137137 set. insert ( i. to_string ( ) ) ;
138138 }
139- timed ( & mut self . delete_strings , move || {
139+ timed ( & mut self . delete_strings , || {
140140 for i in range ( 0 u, num_keys) {
141141 assert ! ( set. remove( & i. to_string( ) ) ) ;
142142 }
0 commit comments