Skip to content

Commit 289c7d3

Browse files
wuwbobo2021Dirbaio
authored andcommitted
Execute cargo fmt
1 parent f5c72b3 commit 289c7d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

java-spaghetti/src/refs/local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl<'env, T: ReferenceType> Local<'env, T> {
5757
self.ref_.as_raw()
5858
}
5959

60-
/// Leaks the `Local` and turns it into a raw pointer, preserving the ownership of one JNI
60+
/// Leaks the `Local` and turns it into a raw pointer, preserving the ownership of one JNI
6161
/// local reference; prevents `DeleteLocalRef` from being called on dropping. See [Local::leak].
6262
pub fn into_raw(self) -> jobject {
6363
let object = self.ref_.as_raw();

java-spaghetti/src/refs/ref_.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ impl<'env, T: ReferenceType> Ref<'env, T> {
7070
assert!(!object.is_null());
7171
unsafe { Local::from_raw(self.env(), object) }
7272
}
73-
73+
7474
/// Enters monitored mode or increments the JNI monitor counter in this thread for the referenced Java object.
7575
/// See [Monitor] for the limited locking functionality.
7676
pub fn as_monitor(&'env self) -> Monitor<'env, T> {
7777
Monitor::new(self)
7878
}
79-
79+
8080
/// Tests whether two JNI references refer to the same Java object.
8181
pub fn is_same_object<O: ReferenceType>(&self, other: &Ref<'_, O>) -> bool {
8282
let jnienv = self.env.as_raw();

0 commit comments

Comments
 (0)