From bf6544cf2881a5832d2d923924140fdab9072b79 Mon Sep 17 00:00:00 2001 From: PSeitz Date: Fri, 27 Oct 2023 07:09:25 +0200 Subject: [PATCH] fix mmap::Advice reexport (#2230) --- src/directory/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/directory/mod.rs b/src/directory/mod.rs index 1dda8579e9..93c9225679 100644 --- a/src/directory/mod.rs +++ b/src/directory/mod.rs @@ -42,6 +42,9 @@ pub struct GarbageCollectionResult { pub failed_to_delete_files: Vec, } +#[cfg(all(feature = "mmap", unix))] +pub use memmap2::Advice; + pub use self::managed_directory::ManagedDirectory; #[cfg(feature = "mmap")] pub use self::mmap_directory::MmapDirectory;