Skip to content

Commit d5050c0

Browse files
authored
Merge pull request #156 from cjgillot/memmap
Update memmap to memmap2.
2 parents dcf12b4 + 99ce27b commit d5050c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

measureme/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ smallvec = "1.0"
2222
nightly = []
2323

2424
[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dependencies]
25-
memmap = "0.7"
25+
memmap2 = "0.2.1"
2626
perf-event-open-sys = "1.0.1"

measureme/src/counters.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const BUG_REPORT_MSG: &str =
302302
/// Linux x86_64 implementation based on `perf_event_open` and `rdpmc`.
303303
#[cfg(all(feature = "nightly", target_arch = "x86_64", target_os = "linux"))]
304304
mod hw {
305-
use memmap::{Mmap, MmapOptions};
305+
use memmap2::{Mmap, MmapOptions};
306306
use perf_event_open_sys::{bindings::*, perf_event_open};
307307
use std::convert::TryInto;
308308
use std::error::Error;

0 commit comments

Comments
 (0)