Skip to content

Commit eeeb802

Browse files
committed
Fix error after merge conflict
1 parent 6c3583d commit eeeb802

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android-activity/src/game_activity/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ pub unsafe extern "C" fn _rust_glue_entry(native_app: *mut ffi::android_app) {
927927
unsafe {
928928
// Name thread - this needs to happen here after attaching to a JVM thread,
929929
// since that changes the thread name to something like "Thread-2".
930-
let thread_name = CStr::from_bytes_with_nul(b"android_main\0").unwrap();
930+
let thread_name = std::ffi::CStr::from_bytes_with_nul(b"android_main\0").unwrap();
931931
libc::pthread_setname_np(libc::pthread_self(), thread_name.as_ptr());
932932

933933
let app = AndroidApp::from_ptr(NonNull::new(native_app).unwrap(), jvm.clone());

android-activity/src/native_activity/glue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ extern "C" fn ANativeActivity_onCreate(
870870
unsafe {
871871
// Name thread - this needs to happen here after attaching to a JVM thread,
872872
// since that changes the thread name to something like "Thread-2".
873-
let thread_name = CStr::from_bytes_with_nul(b"android_main\0").unwrap();
873+
let thread_name = std::ffi::CStr::from_bytes_with_nul(b"android_main\0").unwrap();
874874
libc::pthread_setname_np(libc::pthread_self(), thread_name.as_ptr());
875875

876876
// We want to specifically catch any panic from the application's android_main

0 commit comments

Comments
 (0)