From 4b0331590e5afe3f06c372b20c98b9a44b7bc2ba Mon Sep 17 00:00:00 2001 From: wtfsck Date: Wed, 23 Feb 2022 22:35:42 +0100 Subject: [PATCH] Add `#[non_exhaustive]` --- src/rust/iced-x86/src/code_asm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rust/iced-x86/src/code_asm.rs b/src/rust/iced-x86/src/code_asm.rs index e968e9e4f..5a3ba664e 100644 --- a/src/rust/iced-x86/src/code_asm.rs +++ b/src/rust/iced-x86/src/code_asm.rs @@ -207,6 +207,7 @@ impl CodeLabel { /// Result of assembling the instructions #[derive(Debug)] +#[cfg_attr(not(feature = "exhaustive_enums"), non_exhaustive)] pub struct CodeAssemblerResult { /// Inner `BlockEncoder` result pub inner: BlockEncoderResult,