fix: cg fix
This commit is contained in:
parent
66a3784627
commit
f3c8c02296
@ -1,8 +1,8 @@
|
||||
use core::primitive as rust;
|
||||
|
||||
use jni::objects::JObject;
|
||||
use jni::sys::{jbyteArray, jobject};
|
||||
use toad_jni::java::{self, Object};
|
||||
use jni::sys::jbyteArray;
|
||||
use toad_jni::java;
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
pub struct u64(java::lang::Object);
|
||||
|
@ -2,7 +2,6 @@ pub mod ffi;
|
||||
pub mod msg;
|
||||
|
||||
mod retry_strategy;
|
||||
use std::net::{Ipv4Addr, SocketAddr};
|
||||
|
||||
use jni::objects::{JClass, JObject};
|
||||
use jni::sys::jobject;
|
||||
|
@ -3,9 +3,7 @@ pub mod owned;
|
||||
pub mod ref_;
|
||||
|
||||
mod ty;
|
||||
use jni::objects::JObject;
|
||||
use jni::sys::jobject;
|
||||
use toad_jni::java;
|
||||
|
||||
pub use ty::Type;
|
||||
|
||||
mod payload;
|
||||
|
@ -1,7 +1,7 @@
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
use jni::objects::JObject;
|
||||
use jni::sys::{jbyteArray, jobject};
|
||||
use jni::sys::jbyteArray;
|
||||
use toad_jni::java::net::InetSocketAddress;
|
||||
use toad_jni::java::util::ArrayList;
|
||||
use toad_jni::java::{self};
|
||||
|
@ -1,11 +1,11 @@
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
use jni::objects::{JClass, JObject, JThrowable};
|
||||
use jni::objects::JObject;
|
||||
use jni::sys::jobject;
|
||||
use toad::net::Addrd;
|
||||
use toad_jni::java::lang::Throwable;
|
||||
use toad_jni::java::net::InetSocketAddress;
|
||||
use toad_jni::java::{self, Object, ResultYieldToJavaOrThrow};
|
||||
use toad_jni::java::{self, ResultYieldToJavaOrThrow};
|
||||
use toad_msg::MessageOptions;
|
||||
|
||||
use crate::dev::toad::ffi::Ptr;
|
||||
@ -137,7 +137,7 @@ pub extern "system" fn Java_dev_toad_msg_ref_Message_payload<'local>(mut env: ja
|
||||
.map(|msg| {
|
||||
msg.data()
|
||||
.content_format()
|
||||
.map(|f| {
|
||||
.map(|_f| {
|
||||
Payload::new(e, msg.data().payload.0.iter().copied())
|
||||
})
|
||||
.unwrap_or_else(|| {
|
||||
|
@ -1,8 +1,8 @@
|
||||
use jni::objects::{JClass, JObject};
|
||||
use jni::objects::JObject;
|
||||
use jni::sys::jobject;
|
||||
use jni::JNIEnv;
|
||||
use toad_jni::java::lang::Throwable;
|
||||
use toad_jni::java::{self, Object, ResultYieldToJavaOrThrow};
|
||||
use toad_jni::java::{self, ResultYieldToJavaOrThrow};
|
||||
use toad_msg::OptNumber;
|
||||
|
||||
use super::OptValue;
|
||||
|
@ -1,4 +1,4 @@
|
||||
use jni::objects::{JClass, JObject};
|
||||
use jni::objects::JObject;
|
||||
use jni::sys::jobject;
|
||||
use toad_jni::java::lang::Throwable;
|
||||
use toad_jni::java::{self, ResultYieldToJavaOrThrow};
|
||||
|
@ -3,8 +3,6 @@ use jni::sys::jobject;
|
||||
use tinyvec::ArrayVec;
|
||||
use toad_jni::java::{self, Object};
|
||||
|
||||
use crate::dev::toad::ffi;
|
||||
|
||||
pub struct Token(java::lang::Object);
|
||||
java::object_newtype!(Token);
|
||||
impl java::Class for Token {
|
||||
|
@ -1,6 +1,6 @@
|
||||
use toad::retry::Strategy;
|
||||
use toad::time::Millis;
|
||||
use toad_jni::java::{self, Object};
|
||||
use toad_jni::java;
|
||||
|
||||
use crate::dev::toad::ffi;
|
||||
|
||||
|
@ -4,13 +4,12 @@ use no_std_net::SocketAddr;
|
||||
use toad::config::Config;
|
||||
use toad::net::Addrd;
|
||||
use toad::platform::Platform;
|
||||
use toad_jni::java::net::StandardProtocolFamily::INet;
|
||||
use toad_jni::java::nio::channels::{DatagramChannel, PeekableDatagramChannel};
|
||||
use toad_jni::java::{self, Object, Signature};
|
||||
use toad_jni::java::nio::channels::PeekableDatagramChannel;
|
||||
use toad_jni::java::{self};
|
||||
use toad_msg::alloc::Message;
|
||||
use toad_msg::{Code, Id, Token, Type};
|
||||
|
||||
use crate::{dev, Runtime};
|
||||
use crate::dev;
|
||||
|
||||
type RustRuntime =
|
||||
toad::std::Platform<toad::std::dtls::N, toad::step::runtime::std::Runtime<toad::std::dtls::N>>;
|
||||
|
@ -12,10 +12,9 @@ mod runtime {
|
||||
use toad::platform::{Effect, Platform};
|
||||
use toad::step::runtime::Runtime as DefaultSteps;
|
||||
use toad_jni::java::io::IOException;
|
||||
use toad_jni::java::lang::System;
|
||||
use toad_jni::java::nio::channels::PeekableDatagramChannel;
|
||||
use toad_jni::java::util::logging::{ConsoleHandler, Level, Logger};
|
||||
use toad_jni::java::{self, Object, ResultExt, Signature};
|
||||
use toad_jni::java::{self};
|
||||
use toad_msg::{OptNumber, OptValue};
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
@ -120,7 +119,7 @@ pub mod e2e;
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod test {
|
||||
use std::net::{Ipv4Addr, SocketAddr};
|
||||
|
||||
use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
use std::sync::Once;
|
||||
|
Loading…
Reference in New Issue
Block a user