We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f1dbb5 commit 0e5b18aCopy full SHA for 0e5b18a
library/std/src/sys/pal/unix/thread.rs
@@ -233,7 +233,7 @@ impl Thread {
233
if let Some(f) = taskNameSet.get() {
234
const VX_TASK_NAME_LEN: usize = 10;
235
236
- let name = truncate_cstr::<{ VX_TASK_NAME_LEN }>(name);
+ let mut name = truncate_cstr::<{ VX_TASK_NAME_LEN }>(name);
237
let status = unsafe { f(libc::taskIdSelf(), name.as_mut_ptr()) };
238
debug_assert_eq!(status, libc::OK);
239
}
0 commit comments