Skip to content

Commit 0cc4b96

Browse files
committed
Fix
1 parent 387e1c2 commit 0cc4b96

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

native/chromium_swt/src/cef_cookie.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ pub extern "C" fn Java_org_eclipse_set_browser_lib_cefswt_1cookie_1visitor_1t_ce
2020
cookie: *mut chromium::cef::_cef_cookie_t,
2121
) -> jstring {
2222
let value = unsafe { CStr::from_ptr(cefswt_cookie_value(cookie)) };
23-
return env
23+
env
2424
.new_string(value.to_str().unwrap())
2525
.unwrap()
26-
.into_inner();
26+
.into_inner()
2727
}
2828

2929
#[no_mangle]
@@ -33,10 +33,10 @@ pub extern "C" fn Java_org_eclipse_set_browser_lib_cefswt_1cookie_1visitor_1t_ce
3333
cookie: *mut chromium::cef::_cef_cookie_t,
3434
) -> jstring {
3535
let value = unsafe { CStr::from_ptr(cefswt_cookie_to_java(cookie)) };
36-
return env
36+
env
3737
.new_string(value.to_str().unwrap())
3838
.unwrap()
39-
.into_inner();
39+
.into_inner()
4040
}
4141

4242
fn cefswt_cookie_to_java(cookie: *mut chromium::cef::_cef_cookie_t) -> *mut c_char {

native/chromium_swt/src/cef_download_item.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ pub unsafe extern "C" fn get_full_path(
2424
let path = (*item).get_full_path.unwrap()(item);
2525

2626
let value = CStr::from_ptr(crate::cefswt_cefstring_to_java(path));
27-
return env
27+
env
2828
.new_string(value.to_str().unwrap())
2929
.unwrap()
30-
.into_inner();
30+
.into_inner()
3131
}
3232

3333
#[jni_name("org.eclipse.set.browser.lib.cef_download_item_t")]
@@ -56,10 +56,10 @@ pub unsafe extern "C" fn get_url(
5656
) -> jstring {
5757
let url = (*item).get_url.unwrap()(item);
5858
let value = CStr::from_ptr(crate::cefswt_cefstring_to_java(url));
59-
return env
59+
env
6060
.new_string(value.to_str().unwrap())
6161
.unwrap()
62-
.into_inner();
62+
.into_inner()
6363
}
6464

6565
#[jni_name("org.eclipse.set.browser.lib.cef_download_item_t")]

0 commit comments

Comments
 (0)