diff --git a/rnex-core/src/rmc/structures/mod.rs b/rnex-core/src/rmc/structures/mod.rs index 33de120..ce6cb75 100644 --- a/rnex-core/src/rmc/structures/mod.rs +++ b/rnex-core/src/rmc/structures/mod.rs @@ -13,6 +13,7 @@ pub enum Error { Utf8(#[from] FromUtf8Error), #[error("unexpected value: {0}")] UnexpectedValue(u64), + #[cfg(feature = "rmc_struct_header")] #[error("version mismatch: {0}")] VersionMismatch(u8), #[error("an error occurred reading the station url")]