From a51d30a89b6c219344cbad28cab968c170e8c868 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Thu, 18 May 2023 14:06:36 +0800 Subject: [PATCH] dev(core): rearrange code --- core/src/concepts/query.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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)), + } + } +}