diff rust/hg-core/src/revlog/nodemap_docket.rs @ 47983:e834b79def74

rust: Switch to the memmap2-rs crate https://github.com/RazrFalcon/memmap2-rs This is a fork of the original memmap crate which appears to be unmaintained: https://github.com/danburkert/memmap-rs/issues/90 This fork is the most popular according to https://crates.io/keywords/mmap Differential Revision: https://phab.mercurial-scm.org/D11397
author Simon Sapin <simon.sapin@octobus.net>
date Fri, 10 Sep 2021 09:53:09 +0200
parents 842f2372ced6
children 001d747c2baf
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/nodemap_docket.rs	Thu Sep 09 18:07:40 2021 +0200
+++ b/rust/hg-core/src/revlog/nodemap_docket.rs	Fri Sep 10 09:53:09 2021 +0200
@@ -1,7 +1,7 @@
 use crate::errors::{HgError, HgResultExt};
 use crate::requirements;
 use bytes_cast::{unaligned, BytesCast};
-use memmap::Mmap;
+use memmap2::Mmap;
 use std::path::{Path, PathBuf};
 
 use super::revlog::RevlogError;