We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64e2943 commit 410b311Copy full SHA for 410b311
talpid-tunnel/src/tun_provider/android/mod.rs
@@ -107,6 +107,8 @@ impl AndroidTunProvider {
107
fn open_tun_inner(&mut self, get_tun_func_name: &'static str) -> Result<VpnServiceTun, Error> {
108
let tun_fd = self.open_tun_fd(get_tun_func_name)?;
109
110
+ // i have no idea why this is/isn't safe.
111
+ #[allow(clippy::undocumented_unsafe_blocks)]
112
let jvm = unsafe { JavaVM::from_raw(self.jvm.get_java_vm_pointer()) }
113
.map_err(Error::CloneJavaVm)?;
114
0 commit comments