Switch to memmap2 fork

This commit is contained in:
Trent Nelson
2020-12-11 13:57:43 -07:00
committed by mergify[bot]
parent 730cb3b7cc
commit edff62af3d
8 changed files with 26 additions and 18 deletions

View File

@@ -21,7 +21,7 @@ thiserror = "1.0"
[target.'cfg(not(target_arch = "bpf"))'.dependencies]
solana-logger = { path = "../logger", version = "1.5.0" }
generic-array = { version = "0.14.3", default-features = false, features = ["serde", "more_lengths"]}
memmap = "0.7.0"
memmap2 = "0.1.0"
[build-dependencies]
rustc_version = "0.2"

View File

@@ -415,9 +415,9 @@ impl<T: std::cmp::Ord + AbiExample> AbiExample for BTreeSet<T> {
}
#[cfg(not(target_arch = "bpf"))]
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")
}
}