File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 12
12
13
13
use clone:: Clone ;
14
14
use cmp:: Eq ;
15
- use fmt;
16
15
use kinds:: { marker, Copy } ;
17
16
use ops:: { Deref , DerefMut , Drop } ;
18
17
use option:: { None , Option , Some } ;
@@ -60,12 +59,6 @@ impl<T:Eq + Copy> Eq for Cell<T> {
60
59
}
61
60
}
62
61
63
- impl < T : Copy + fmt:: Show > fmt:: Show for Cell < T > {
64
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
65
- write ! ( f. buf, r"Cell \{ value: {} \}" , self . get( ) )
66
- }
67
- }
68
-
69
62
/// A mutable memory location with dynamically checked borrow rules
70
63
pub struct RefCell < T > {
71
64
value : Unsafe < T > ,
Original file line number Diff line number Diff line change @@ -67,11 +67,12 @@ mod unicode;
67
67
mod unit;
68
68
pub mod any;
69
69
pub mod bool;
70
+ pub mod cell;
71
+ pub mod char;
70
72
pub mod finally;
71
73
pub mod iter;
72
74
pub mod option;
73
75
pub mod raw;
74
- pub mod char;
75
76
pub mod result;
76
77
pub mod slice;
77
78
pub mod str;
Original file line number Diff line number Diff line change @@ -485,13 +485,15 @@ will look like `"\\{"`.
485
485
486
486
use any;
487
487
use cast;
488
+ use cell:: Cell ;
488
489
use char:: Char ;
489
490
use cmp;
490
491
use container:: Container ;
491
492
use io:: MemWriter ;
492
493
use io;
493
494
use iter;
494
495
use iter:: { Iterator , range} ;
496
+ use kinds:: Copy ;
495
497
use num:: Signed ;
496
498
use option:: { Option , Some , None } ;
497
499
use owned:: Box ;
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ extern crate core;
141
141
pub use core:: any;
142
142
pub use core:: bool;
143
143
pub use core:: cast;
144
+ pub use core:: cell;
144
145
pub use core:: char;
145
146
pub use core:: clone;
146
147
pub use core:: container;
@@ -220,7 +221,6 @@ pub mod hash;
220
221
/* Common data structures */
221
222
222
223
pub mod result;
223
- pub mod cell;
224
224
225
225
226
226
/* Tasks and communication */
You can’t perform that action at this time.
0 commit comments