Skip to content

Commit

Permalink
Change Arch repr to u32 instead of isize to support wasm32 targets
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Bedard <[email protected]>
  • Loading branch information
maximebedard committed Nov 21, 2024
1 parent 230a95b commit c35832b
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 c35832b

Please sign in to comment.