From 26958e512368b9c2dd1d77f8e99521b735568a46 Mon Sep 17 00:00:00 2001 From: Miraculous Owonubi Date: Fri, 15 Nov 2024 18:35:32 +0300 Subject: [PATCH] fix guard --- crates/storage/src/collections/root.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/storage/src/collections/root.rs b/crates/storage/src/collections/root.rs index 0a7ea7020..036b0b110 100644 --- a/crates/storage/src/collections/root.rs +++ b/crates/storage/src/collections/root.rs @@ -103,10 +103,10 @@ where /// Fetches the root collection. pub fn fetch() -> Option { - employ_root_guard(); - let inner = Interface::root().unwrap()?; + employ_root_guard(); + Some(Self { inner, dirty: false,