summaryrefslogtreecommitdiff
path: root/core/ops.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/ops.rs')
-rw-r--r--core/ops.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ops.rs b/core/ops.rs
index fbdb96fcd..50197c9be 100644
--- a/core/ops.rs
+++ b/core/ops.rs
@@ -16,6 +16,7 @@ use indexmap::IndexMap;
use serde::de::DeserializeOwned;
use serde::Serialize;
use std::cell::RefCell;
+use std::cell::UnsafeCell;
use std::iter::once;
use std::ops::Deref;
use std::ops::DerefMut;
@@ -170,7 +171,7 @@ impl OpState {
op_table: OpTable::default(),
get_error_class_fn: &|_| "Error",
tracker: OpsTracker {
- ops: RefCell::new(Vec::with_capacity(256)),
+ ops: UnsafeCell::new(Vec::with_capacity(256)),
},
gotham_state: Default::default(),
}