Skip to content

Commit 390bcde

Browse files
authored
Merge pull request #2 from dmitris/libloading-0.7
upgrade libloading dep to 0.7
2 parents 710b283 + a36bdb2 commit 390bcde

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ readme = "README.md"
1111
edition = "2018"
1212

1313
[dependencies]
14-
libloading = "0.5"
14+
libloading = "0.7"
1515
lazy_static = "1.0"
1616
failure = "0.1"
1717
libc = "0.2"

src/lib.rs

+8-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
//!
3333
//! ``` toml
3434
//! [dependencies]
35-
//! rustc-llvm-proxy = "0.1"
35+
//! rustc-llvm-proxy = "0.4"
3636
//! ```
3737
//!
3838
//! ``` rust
@@ -67,12 +67,14 @@ lazy_static! {
6767
}
6868
};
6969

70-
match Library::new(lib_path) {
71-
Ok(path) => path,
70+
unsafe {
71+
match Library::new(lib_path) {
72+
Ok(path) => path,
7273

73-
Err(error) => {
74-
eprintln!("Unable to open LLVM shared lib: {}", error);
75-
panic!();
74+
Err(error) => {
75+
eprintln!("Unable to open LLVM shared lib: {}", error);
76+
panic!();
77+
}
7678
}
7779
}
7880
};

0 commit comments

Comments
 (0)