diff --git a/crates/fj-core/src/storage/handle.rs b/crates/fj-core/src/storage/handle.rs index 15b5f8d187..63eea2908d 100644 --- a/crates/fj-core/src/storage/handle.rs +++ b/crates/fj-core/src/storage/handle.rs @@ -1,4 +1,6 @@ -use std::{any::type_name, cmp::Ordering, fmt, hash::Hash, ops::Deref}; +use std::{ + any::type_name, borrow::Borrow, cmp::Ordering, fmt, hash::Hash, ops::Deref, +}; use super::{blocks::Index, store::StoreInner}; @@ -82,6 +84,12 @@ impl Deref for Handle { } } +impl Borrow for Handle { + fn borrow(&self) -> &T { + self.deref() + } +} + impl Clone for Handle { fn clone(&self) -> Self { Self {