Skip to content

Commit 0e5b18a

Browse files
committed
mutname
1 parent 1f1dbb5 commit 0e5b18a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/pal/unix/thread.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl Thread {
233233
if let Some(f) = taskNameSet.get() {
234234
const VX_TASK_NAME_LEN: usize = 10;
235235

236-
let name = truncate_cstr::<{ VX_TASK_NAME_LEN }>(name);
236+
let mut name = truncate_cstr::<{ VX_TASK_NAME_LEN }>(name);
237237
let status = unsafe { f(libc::taskIdSelf(), name.as_mut_ptr()) };
238238
debug_assert_eq!(status, libc::OK);
239239
}

0 commit comments

Comments
 (0)