Skip to content

Commit

Permalink
Merge pull request #260 from maximebedard/mb/arch-repr-u32
Browse files Browse the repository at this point in the history
Change Arch repr to u32 instead of isize to support wasm32 targets
  • Loading branch information
flavio authored Nov 25, 2024
2 parents 230a95b + c35832b commit e1dded7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,10 +1096,10 @@ impl Default for LinuxSeccompAction {
}
}

#[allow(clippy::enum_clike_unportable_variant)]
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize, StrumDisplay, EnumString)]
#[strum(serialize_all = "SCREAMING_SNAKE_CASE")]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
#[repr(u32)]
/// Available seccomp architectures.
pub enum Arch {
/// The native architecture.
Expand Down

0 comments on commit e1dded7

Please sign in to comment.