diff rust/hg-core/src/vfs.rs @ 47955: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 9cd35c8c6044
children 9d0e5629cfbf
line wrap: on
line diff
--- a/rust/hg-core/src/vfs.rs	Thu Sep 09 18:07:40 2021 +0200
+++ b/rust/hg-core/src/vfs.rs	Fri Sep 10 09:53:09 2021 +0200
@@ -1,5 +1,5 @@
 use crate::errors::{HgError, IoErrorContext, IoResultExt};
-use memmap::{Mmap, MmapOptions};
+use memmap2::{Mmap, MmapOptions};
 use std::io::ErrorKind;
 use std::path::{Path, PathBuf};