Skip to content

Commit

Permalink
Update libloading
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Apr 14, 2021
1 parent 60a8000 commit 0fe741f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ byteorder = "1"
chomp = "0.3"
hex = "0.4"
libc = "0.2"
libloading = { version = "0.6", optional = true }
libloading = { version = "0.7", optional = true }
rand = "0.8"
thiserror = "1"

Expand Down
4 changes: 2 additions & 2 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ pub fn main() {

#[cfg(feature = "hooks")]
{
let dlh =
Library::new("src/bin/c_hook/c_hook.dylib").expect("Cannot load the sample C library");
let dlh = unsafe { Library::new("src/bin/c_hook/c_hook.dylib") }
.expect("Cannot load the sample C library");

let hook_deliver: Symbol<
'_,
Expand Down

0 comments on commit 0fe741f

Please sign in to comment.