Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 963e986

Browse files
committed
chore: remove unused imports in config.rs; apply rustfmt
1 parent a86109e commit 963e986

18 files changed

Lines changed: 28 additions & 27 deletions

File tree

java/src/types/classes.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ impl_java_class!(
132132
impl_java_class!(
133133
"com/longport/quote/PrePostQuote",
134134
longport::quote::PrePostQuote,
135-
[last_done, timestamp, volume, turnover, high, low, prev_close]
135+
[
136+
last_done, timestamp, volume, turnover, high, low, prev_close
137+
]
136138
);
137139

138140
impl_java_class!(

java/src/types/datetime.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
use std::borrow::Cow;
22

33
use jni::{
4+
JNIEnv,
45
errors::Result,
56
objects::{JValue, JValueOwned},
6-
JNIEnv,
77
};
88
use time::{Date, Month, OffsetDateTime, PrimitiveDateTime, Time};
99

1010
use crate::{
1111
init::{
12-
TIME_INSTANT_CLASS, TIME_LOCALDATETIME_CLASS, TIME_LOCALDATE_CLASS, TIME_LOCALTIME_CLASS,
12+
TIME_INSTANT_CLASS, TIME_LOCALDATE_CLASS, TIME_LOCALDATETIME_CLASS, TIME_LOCALTIME_CLASS,
1313
TIME_OFFSETDATETIME_CLASS, TIME_ZONE_ID,
1414
},
15-
types::{get_field, ClassLoader, FromJValue, IntoJValue, JSignature},
15+
types::{ClassLoader, FromJValue, IntoJValue, JSignature, get_field},
1616
};
1717

1818
impl ClassLoader for OffsetDateTime {

java/src/types/decimal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::borrow::Cow;
22

3-
use jni::{errors::Result, objects::JValueOwned, JNIEnv};
3+
use jni::{JNIEnv, errors::Result, objects::JValueOwned};
44
use longport::Decimal;
55

66
use crate::{

java/src/types/enum_types.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::borrow::Cow;
22

33
use jni::{
4+
JNIEnv,
45
errors::Result,
56
objects::{JObject, JValueOwned},
6-
JNIEnv,
77
};
88
use longport_java_macros::impl_java_enum;
99

@@ -348,7 +348,9 @@ impl_java_enum!(
348348
impl_java_enum!(
349349
"com/longport/trade/OrderType",
350350
longport::trade::OrderType,
351-
[Unknown, LO, ELO, MO, AO, ALO, ODD, LIT, MIT, TSLPAMT, TSLPPCT, TSMAMT, TSMPCT, SLO]
351+
[
352+
Unknown, LO, ELO, MO, AO, ALO, ODD, LIT, MIT, TSLPAMT, TSLPPCT, TSMAMT, TSMPCT, SLO
353+
]
352354
);
353355

354356
impl_java_enum!(

java/src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ mod sub_flags;
1212
use std::borrow::Cow;
1313

1414
use jni::{
15+
JNIEnv,
1516
errors::Result,
1617
objects::{GlobalRef, JObject, JValueOwned},
1718
strings::JNIString,
18-
JNIEnv,
1919
};
2020

2121
pub(crate) use self::{

java/src/types/object_array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::borrow::Cow;
22

33
use jni::{
4+
JNIEnv,
45
errors::Result,
56
objects::{JObject, JObjectArray, JValueOwned},
6-
JNIEnv,
77
};
88

99
use crate::types::{ClassLoader, FromJValue, IntoJValue, JSignature};

java/src/types/optional.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::borrow::Cow;
22

33
use jni::{
4+
JNIEnv,
45
errors::Result,
56
objects::{JObject, JValueOwned},
6-
JNIEnv,
77
};
88

99
use crate::types::{ClassLoader, FromJValue, IntoJValue, JSignature};

java/src/types/primary_array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use std::borrow::Cow;
22

33
use jni::{
4+
JNIEnv,
45
errors::Result,
56
objects::{JValueOwned, ReleaseMode},
67
sys::{jboolean, jint, jlong},
7-
JNIEnv,
88
};
99

1010
use crate::types::{FromJValue, IntoJValue, JSignature};

java/src/types/primary_types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::borrow::Cow;
22

3-
use jni::{errors::Result, objects::JValueOwned, JNIEnv};
3+
use jni::{JNIEnv, errors::Result, objects::JValueOwned};
44

55
use crate::{
66
init::{INTEGER_CLASS, LONG_CLASS},

java/src/types/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use jni::{
2+
JNIEnv,
23
errors::Result,
34
objects::{JString, JValueOwned},
4-
JNIEnv,
55
};
66

77
use crate::{

0 commit comments

Comments
 (0)