mark Cell as non-Const with #[mutable]
This commit is contained in:
parent
58c0df2af6
commit
66842c8576
1 changed files with 1 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ A dynamic, mutable location.
|
|||
Similar to a mutable option type, but friendlier.
|
||||
*/
|
||||
|
||||
#[mutable]
|
||||
pub struct Cell<T> {
|
||||
priv value: Option<T>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue