From 9d70a28e4f0fb4933c0a994c9f0dffdcd97a8af7 Mon Sep 17 00:00:00 2001 From: Luke Seelenbinder Date: Tue, 17 Sep 2024 19:34:27 +0300 Subject: [PATCH] Restore necessary prefix. --- src/directory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directory.rs b/src/directory.rs index a839a91..c416d5e 100644 --- a/src/directory.rs +++ b/src/directory.rs @@ -41,7 +41,7 @@ impl Directory { /// Get an estimated byte size of the directory object. Use this for cache eviction. #[must_use] pub fn get_approx_byte_size(&self) -> usize { - self.entries.capacity() * size_of::() + self.entries.capacity() * std::mem::size_of::() } }