Skip to content

Commit

Permalink
WIP: make some cfg_attrs actually right for lints under CORE_MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Jan 31, 2025
1 parent 7fa5129 commit cf11a20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wgpu-core/src/command/compute_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ pub enum ArcComputeCommand {
},

PushDebugGroup {
#[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))]
#[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))]
color: u32,
len: usize,
},

PopDebugGroup,

InsertDebugMarker {
#[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))]
#[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))]
color: u32,
len: usize,
},
Expand Down
4 changes: 2 additions & 2 deletions wgpu-core/src/command/render_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,13 @@ pub enum ArcRenderCommand {
indexed: bool,
},
PushDebugGroup {
#[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))]
#[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))]
color: u32,
len: usize,
},
PopDebugGroup,
InsertDebugMarker {
#[cfg_attr(not(any(feature = "serde", feature = "replay")), allow(dead_code))]
#[cfg_attr(not(any(feature = "serde", feature = "replay")), expect(dead_code))]
color: u32,
len: usize,
},
Expand Down

0 comments on commit cf11a20

Please sign in to comment.