File: memmap2.diff

package info (click to toggle)
rust-elfx86exts 0.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 180 kB
  • sloc: makefile: 2
file content (20 lines) | stat: -rw-r--r-- 576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,4 +43,4 @@
 
-[dependencies.memmap]
-version = "^0.7.0"
+[dependencies.memmap2]
+version = "0"
 
--- a/src/main.rs
+++ b/src/main.rs
@@ -218,7 +218,7 @@
 
     // Read the file
     let f = File::open(&args.path).expect("can't open object file");
-    let buf = unsafe { memmap::Mmap::map(&f).expect("can't memmap object file") };
+    let buf = unsafe { memmap2::Mmap::map(&f).expect("can't memmap object file") };
     let obj = object::File::parse(&*buf).expect("can't parse object file");
     let obj_arch = obj.architecture();