Skip to content

Commit 50adbca

Browse files
committed
Disable the static mut warning except in one place
- Current getting absolutely spammed by this, so will need to fix, but for now just a distraction. - mod stats continues to leave it enabled so that I don't forget about it
1 parent 256ca28 commit 50adbca

File tree

7 files changed

+16
-0
lines changed

7 files changed

+16
-0
lines changed

Native/d3dx/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(static_mut_refs)]
12
extern crate util;
23

34
mod d3dx;

Native/device_state/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
#![allow(static_mut_refs)]
2+
13
mod device_state;
24
pub use crate::device_state::*;

Native/hook_core/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(static_mut_refs)]
2+
13
#![allow(non_snake_case)]
24
// this is here to silence the spammy warnings from the COM macro definitions in dnclr.
35
// need to turn this on periodically to find the try dead code.

Native/hook_snapshot/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// taking up python?"
33
#![allow(clippy::all)]
44

5+
#![allow(static_mut_refs)]
6+
57
#![allow(non_snake_case)]
68
mod hook_snapshot;
79
mod snap_extdll;

Native/mod_load/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// wow you think maybe there is some undocumented unsafe stuff going on here?
22
#![allow(clippy::missing_safety_doc)]
33

4+
#![allow(static_mut_refs)]
5+
46
mod mod_load;
57
mod mod_vector;
68
pub use crate::mod_load::*;

Native/mod_stats/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
// this is allowed in other crates because the issue pervades the code at the moment,
2+
// but this crate only generates one warning so leave it enabled here so that
3+
// I don't completely forget about it
4+
//#![allow(static_mut_refs)]
5+
16
pub mod mod_stats;

Native/shader_capture/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(static_mut_refs)]
2+
13
mod shader_capture;
24

35
pub use crate::shader_capture::*;

0 commit comments

Comments
 (0)