summaryrefslogtreecommitdiff
path: root/core/ops.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/ops.rs')
-rw-r--r--core/ops.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/ops.rs b/core/ops.rs
index 3d0d0ec70..a96681eb5 100644
--- a/core/ops.rs
+++ b/core/ops.rs
@@ -14,7 +14,6 @@ use futures::task::noop_waker;
use futures::Future;
use serde::Serialize;
use std::cell::RefCell;
-use std::cell::UnsafeCell;
use std::ops::Deref;
use std::ops::DerefMut;
use std::pin::Pin;
@@ -160,9 +159,7 @@ impl OpState {
resource_table: Default::default(),
get_error_class_fn: &|_| "Error",
gotham_state: Default::default(),
- tracker: OpsTracker {
- ops: UnsafeCell::new(vec![Default::default(); ops_count]),
- },
+ tracker: OpsTracker::new(ops_count),
}
}
}