add unused_mut lint

This commit is contained in:
auronandace
2026-02-08 09:00:14 +00:00
parent a935094d2d
commit 64f18ca89a
18 changed files with 48 additions and 76 deletions
+2
View File
@@ -19,6 +19,7 @@ use crate::{
use crate::sync::{Mutex, waitval::Waitval};
/// Called only by the main thread, as part of relibc_start.
#[allow(unused_mut)]
pub unsafe fn init() {
let mut thread = Pthread {
waitval: Waitval::new(),
@@ -102,6 +103,7 @@ impl Drop for MmapGuard {
}
}
#[allow(unused_mut)]
pub(crate) unsafe fn create(
attrs: Option<&header::RlctAttr>,
start_routine: extern "C" fn(arg: *mut c_void) -> *mut c_void,