add unused-unsafe lint

This commit is contained in:
auronandace
2026-02-08 15:39:48 +00:00
parent 1ec204d702
commit c3f3e051e1
11 changed files with 47 additions and 66 deletions
+1 -1
View File
@@ -1102,7 +1102,7 @@ pub unsafe extern "C" fn rand() -> c_int {
None => {
let mut rng = XorShiftRng::from_seed([1; 16]);
let ret = rng_sampler().sample(&mut rng);
unsafe { RNG = Some(rng) };
RNG = Some(rng);
ret
}
}