Skip to content

Commit c35832b

Browse files
committed
Change Arch repr to u32 instead of isize to support wasm32 targets
Signed-off-by: Maxime Bedard <[email protected]>
1 parent 230a95b commit c35832b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,10 +1096,10 @@ impl Default for LinuxSeccompAction {
10961096
}
10971097
}
10981098

1099-
#[allow(clippy::enum_clike_unportable_variant)]
11001099
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize, StrumDisplay, EnumString)]
11011100
#[strum(serialize_all = "SCREAMING_SNAKE_CASE")]
11021101
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
1102+
#[repr(u32)]
11031103
/// Available seccomp architectures.
11041104
pub enum Arch {
11051105
/// The native architecture.

0 commit comments

Comments
 (0)