Skip to content

Commit

Permalink
Add missing #[cfg_attr(feature = "serde", ...)]
Browse files Browse the repository at this point in the history
  • Loading branch information
koenichiwa committed Aug 8, 2023
1 parent 2999f4f commit 3431f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resource_limits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, Default, Clone, PartialEq, Eq)]
pub struct ResourceLimits {
core: Option<u64>,
#[serde(rename = "CPU")]
#[cfg_attr(feature = "serde", serde(rename = "CPU"))]
cpu: Option<u64>,
data: Option<u64>,
file_size: Option<u64>,
Expand Down

0 comments on commit 3431f3a

Please sign in to comment.