fix(jni): bump to jni to 0.11 & remove unsafe impl (#10394)
This commit is contained in:
committed by
Andronik Ordian
parent
2cbffe36e2
commit
f825048efa
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user