diff --git a/cache_utils/Cargo.toml b/cache_utils/Cargo.toml index 4f08f6d..110e4b7 100644 --- a/cache_utils/Cargo.toml +++ b/cache_utils/Cargo.toml @@ -10,14 +10,14 @@ edition = "2018" polling_serial = { path = "../polling_serial", optional = true } vga_buffer = { path = "../vga_buffer", optional = true } cpuid = { path = "../cpuid", default-features = false } -x86_64 = "0.12.2" +x86_64 = "0.14.1" static_assertions = "1.1.0" -itertools = { version = "0.9.0", default-features = false } -atomic = { version = "0.5.0" } +itertools = { version = "0.10.0", default-features = false } +atomic = "0.5.0" -nix = { version = "0.18.0", optional = true } -libc = { version = "0.2.77", optional = true } -hashbrown = { version = "0.9.1", optional = true } +nix = { version = "0.20.0", optional = true } +libc = { version = "0.2.92", optional = true } +hashbrown = { version = "0.11.2", optional = true } turn_lock = { path = "../turn_lock", optional = true} [features] diff --git a/cache_utils/src/mmap.rs b/cache_utils/src/mmap.rs index d2ed871..dcc3b5c 100644 --- a/cache_utils/src/mmap.rs +++ b/cache_utils/src/mmap.rs @@ -89,7 +89,7 @@ impl DerefMut for MMappedMemory { impl AsRef<[T]> for MMappedMemory { fn as_ref(&self) -> &[T] { - unimplemented!() + self.slice() } }