Skip to content

Commit

Permalink
Runtime::revisions does not need to be boxed
Browse files Browse the repository at this point in the history
Runtime is contained within Zalsa which is Arc'd anyways.
  • Loading branch information
Veykril committed Dec 15, 2024
1 parent 7e36704 commit 7efee65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct Runtime {
/// revisions[i + 1]`, for all `i`. This is because when you
/// modify a value with durability D, that implies that values
/// with durability less than D may have changed too.
revisions: Box<[AtomicRevision; Durability::LEN]>,
revisions: [AtomicRevision; Durability::LEN],

/// The dependency graph tracks which runtimes are blocked on one
/// another, waiting for queries to terminate.
Expand Down Expand Up @@ -81,7 +81,7 @@ impl<V> StampedValue<V> {
impl Default for Runtime {
fn default() -> Self {
Runtime {
revisions: Box::new([const { AtomicRevision::start() }; Durability::LEN]),
revisions: [const { AtomicRevision::start() }; Durability::LEN],
revision_canceled: Default::default(),
dependency_graph: Default::default(),
table: Default::default(),
Expand Down

0 comments on commit 7efee65

Please sign in to comment.