fix(jni): bump to jni to 0.11 & remove unsafe impl (#10394)

This commit is contained in:
Niklas Adolfsson
2019-02-21 17:26:01 +01:00
committed by Andronik Ordian
parent 2cbffe36e2
commit f825048efa
3 changed files with 4 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ crate-type = ["cdylib", "staticlib"]
[dependencies]
futures = "0.1.6"
jni = { version = "0.10.1", optional = true }
jni = { version = "0.11", optional = true }
panic_hook = { path = "../util/panic-hook" }
parity-ethereum = { path = "../", default-features = false }
tokio = "0.1.11"

View File

@@ -36,9 +36,6 @@ struct JavaCallback<'a> {
method_descriptor: &'a str,
}
unsafe impl<'a> Send for JavaCallback<'a> {}
unsafe impl<'a> Sync for JavaCallback<'a> {}
impl<'a> JavaCallback<'a> {
fn new(jvm: JavaVM, callback: GlobalRef) -> Self {
Self {