Skip to content

Commit

Permalink
fix(deps): use mmap-fixed from crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
darfink committed Jun 17, 2017
1 parent a0b23c2 commit 0c7e273
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ libc = "0.2"
matches = "0.1.6"
region = "0.0.7"
slice-pool = "0.3.4"

[dependencies.mmap]
git = "https://github.com/retep998/rust-mmap.git"
mmap-fixed = "0.1.2"

[dev-dependencies]
volatile_cell = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/alloc/proximity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::ops::Range;

use slice_pool::{SlicePool, PoolVal};
use boolinator::Boolinator;
use mmap;
use mmap_fixed as mmap;

use error::*;
use super::search as region_search;
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Error types and utilities.
use mmap_fixed as mmap;
use region;
use mmap;

error_chain! {
foreign_links {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
#[macro_use] extern crate matches;
extern crate boolinator;
extern crate generic_array;
extern crate mmap;
extern crate mmap_fixed;
extern crate region;
extern crate slice_pool;

Expand Down
4 changes: 2 additions & 2 deletions tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn generic() {
}

#[cfg(feature = "static")]
mod static_test {
mod statik {
use super::*;

#[inline(never)]
Expand All @@ -87,7 +87,7 @@ mod static_test {
}

#[test]
fn static_hook() {
fn test() {
unsafe {
let mut hook = DetourAdd.initialize(add, |x, y| x - y).unwrap();

Expand Down

0 comments on commit 0c7e273

Please sign in to comment.