@@ -96,8 +96,8 @@ impl Clone for Entry {
9696 fn clone ( & self ) -> Self {
9797 let mut this = Self {
9898 name : Rc :: new ( RefCell :: new ( ( * self . name . borrow ( ) ) . clone ( ) ) ) ,
99- color : Rc :: new ( RefCell :: new ( ( * self . color . borrow ( ) ) . clone ( ) ) ) ,
100- opt : Rc :: new ( RefCell :: new ( ( * self . opt . borrow ( ) ) . clone ( ) ) ) ,
99+ color : Rc :: new ( RefCell :: new ( ( * self . color . borrow ( ) ) ) ) ,
100+ opt : Rc :: new ( RefCell :: new ( ( * self . opt . borrow ( ) ) ) ) ,
101101 } ;
102102 this
103103 }
@@ -149,7 +149,7 @@ thread_local!(
149149) ;
150150pub fn as_int_4 ( c : Color ) -> i32 {
151151 let c: Value < Color > = Rc :: new ( RefCell :: new ( c) ) ;
152- return ( ( * c. borrow ( ) ) as i32 ) . clone ( ) ;
152+ return ( ( * c. borrow ( ) ) as i32 ) ;
153153}
154154pub fn classify_option_5 ( option : i32 ) -> i32 {
155155 let option: Value < i32 > = Rc :: new ( RefCell :: new ( option) ) ;
@@ -207,7 +207,7 @@ fn main_0() -> i32 {
207207 }
208208 }
209209 } ;
210- let x: Value < i32 > = Rc :: new ( RefCell :: new ( ( ( * c. borrow ( ) ) as i32 ) . clone ( ) ) ) ;
210+ let x: Value < i32 > = Rc :: new ( RefCell :: new ( ( ( * c. borrow ( ) ) as i32 ) ) ) ;
211211 assert ! ( ( ( * x. borrow( ) ) == 0 ) ) ;
212212 let y: Value < i32 > = Rc :: new ( RefCell :: new ( ( ( ( * c. borrow ( ) ) as i32 ) + 1 ) ) ) ;
213213 assert ! ( ( ( * y. borrow( ) ) == 1 ) ) ;
@@ -221,12 +221,12 @@ fn main_0() -> i32 {
221221 let o: Value < Option > = Rc :: new ( RefCell :: new ( Option :: OPT_A ) ) ;
222222 assert ! ( ( ( ( * o. borrow( ) ) as i32 ) == ( Option :: OPT_A as i32 ) ) ) ;
223223 assert ! ( ( ( ( * o. borrow( ) ) as i32 ) == 10 ) ) ;
224- let oi: Value < i32 > = Rc :: new ( RefCell :: new ( ( ( * o. borrow ( ) ) as i32 ) . clone ( ) ) ) ;
224+ let oi: Value < i32 > = Rc :: new ( RefCell :: new ( ( ( * o. borrow ( ) ) as i32 ) ) ) ;
225225 assert ! ( ( ( * oi. borrow( ) ) == 10 ) ) ;
226226 ( * o. borrow_mut ( ) ) = Option :: from ( 20 ) ;
227227 assert ! ( ( ( ( * o. borrow( ) ) as i32 ) == ( Option :: OPT_B as i32 ) ) ) ;
228228 let rc: Value < i32 > = Rc :: new ( RefCell :: new (
229- ( { classify_option_5 ( ( ( * o. borrow ( ) ) as i32 ) . clone ( ) ) } ) ,
229+ ( { classify_option_5 ( ( ( * o. borrow ( ) ) as i32 ) ) } ) ,
230230 ) ) ;
231231 assert ! ( ( ( * rc. borrow( ) ) == 2 ) ) ;
232232 ( * rc. borrow_mut ( ) ) = ( { classify_option_5 ( 20 ) } ) ;
@@ -236,7 +236,7 @@ fn main_0() -> i32 {
236236 let t: Value < Tag > = Rc :: new ( RefCell :: new ( Tag :: TAG_ONE ) ) ;
237237 assert ! ( ( ( ( * t. borrow( ) ) as i32 ) == 1 ) ) ;
238238 assert ! ( ( ( ( * t. borrow( ) ) as i32 ) == ( Tag :: TAG_ONE as i32 ) ) ) ;
239- let ti: Value < i32 > = Rc :: new ( RefCell :: new ( ( ( * t. borrow ( ) ) as i32 ) . clone ( ) ) ) ;
239+ let ti: Value < i32 > = Rc :: new ( RefCell :: new ( ( ( * t. borrow ( ) ) as i32 ) ) ) ;
240240 assert ! ( ( ( * ti. borrow( ) ) == 1 ) ) ;
241241 ( * t. borrow_mut ( ) ) = Tag :: from ( 2 ) ;
242242 assert ! ( ( ( ( * t. borrow( ) ) as i32 ) == ( Tag :: TAG_TWO as i32 ) ) ) ;
0 commit comments