diff --git a/core/src/concepts/query.rs b/core/src/concepts/query.rs index 4f5477c32..22181d5ff 100644 --- a/core/src/concepts/query.rs +++ b/core/src/concepts/query.rs @@ -14,14 +14,6 @@ impl<'a, T> std::ops::Deref for QueryResult<'a, T> { } } -impl Default for QueryRef { - fn default() -> Self { - QueryRef { - cell: RefCell::new((Some(()), None)), - } - } -} - /// Represent the result of an immutable query reference. /// The compute function should be pure enough. /// @@ -115,3 +107,11 @@ impl QueryRef { self.get_ref() } } + +impl Default for QueryRef { + fn default() -> Self { + QueryRef { + cell: RefCell::new((Some(()), None)), + } + } +}