From 3becb0b0edacb8fa96aa53216f64adad8dce1df4 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Sat, 14 Sep 2024 22:45:32 +0100 Subject: [PATCH] Add Default for ASCOMErrorCode --- src/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors.rs b/src/errors.rs index 5cc236d..f8de0a7 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -3,7 +3,7 @@ use std::borrow::Cow; use thiserror::Error; /// Alpaca representation of an ASCOM error code. -#[derive(Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] +#[derive(Default, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] #[serde(transparent)] pub struct ASCOMErrorCode(u16);