Skip to content

Commit

Permalink
dev(core): rearrange code
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed May 18, 2023
1 parent 1ea7e74 commit a51d30a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/src/concepts/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ impl<'a, T> std::ops::Deref for QueryResult<'a, T> {
}
}

impl<T, E> Default for QueryRef<T, E> {
fn default() -> Self {
QueryRef {
cell: RefCell::new((Some(()), None)),
}
}
}

/// Represent the result of an immutable query reference.
/// The compute function should be pure enough.
///
Expand Down Expand Up @@ -115,3 +107,11 @@ impl<T, E: Clone, QC> QueryRef<T, E, QC> {
self.get_ref()
}
}

impl<T, E> Default for QueryRef<T, E> {
fn default() -> Self {
QueryRef {
cell: RefCell::new((Some(()), None)),
}
}
}

0 comments on commit a51d30a

Please sign in to comment.