File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -927,7 +927,7 @@ pub unsafe extern "C" fn _rust_glue_entry(native_app: *mut ffi::android_app) {
927
927
unsafe {
928
928
// Name thread - this needs to happen here after attaching to a JVM thread,
929
929
// 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 ( ) ;
931
931
libc:: pthread_setname_np ( libc:: pthread_self ( ) , thread_name. as_ptr ( ) ) ;
932
932
933
933
let app = AndroidApp :: from_ptr ( NonNull :: new ( native_app) . unwrap ( ) , jvm. clone ( ) ) ;
Original file line number Diff line number Diff line change @@ -870,7 +870,7 @@ extern "C" fn ANativeActivity_onCreate(
870
870
unsafe {
871
871
// Name thread - this needs to happen here after attaching to a JVM thread,
872
872
// 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 ( ) ;
874
874
libc:: pthread_setname_np ( libc:: pthread_self ( ) , thread_name. as_ptr ( ) ) ;
875
875
876
876
// We want to specifically catch any panic from the application's android_main
You can’t perform that action at this time.
0 commit comments