Skip to content

Commit 3669b65

Browse files
byfnoelsyphar
andauthored
Dead code warning only for non-linux platforms
Co-authored-by: Denis Cornehl <[email protected]>
1 parent 5f81817 commit 3669b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub struct Config {
120120
pub(crate) build_default_memory_limit: Option<usize>,
121121
pub(crate) include_default_targets: bool,
122122

123-
#[allow(dead_code)]
123+
#[cfg_attr(not(target_os = "linux"), allow(dead_code))]
124124
pub(crate) disable_memory_limit: bool,
125125

126126
// automatic rebuild configuration

0 commit comments

Comments
 (0)