Switch to memmap2 fork

This commit is contained in:
Trent Nelson
2020-12-11 13:57:43 -07:00
committed by Trent Nelson
parent a645b9481d
commit ec9f9bd5d8
7 changed files with 23 additions and 15 deletions

View File

@@ -414,9 +414,9 @@ impl<T: std::cmp::Ord + AbiExample> AbiExample for BTreeSet<T> {
}
#[cfg(not(feature = "program"))]
impl AbiExample for memmap::MmapMut {
impl AbiExample for memmap2::MmapMut {
fn example() -> Self {
memmap::MmapMut::map_anon(1).expect("failed to map the data file")
memmap2::MmapMut::map_anon(1).expect("failed to map the data file")
}
}

View File

@@ -18,7 +18,7 @@ use crate::{
};
use bincode::{deserialize, serialize};
use chrono::{TimeZone, Utc};
use memmap::Mmap;
use memmap2::Mmap;
use std::{
collections::BTreeMap,
fmt,