From ad85beb6779cf4e970ab91bb0229b9fdf3c2a8ba Mon Sep 17 00:00:00 2001 From: chemicstry Date: Mon, 31 Jul 2023 10:32:17 +0300 Subject: [PATCH] stm32/can: Add more derives for CAN Envelope --- embassy-stm32/src/can/bxcan.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/can/bxcan.rs b/embassy-stm32/src/can/bxcan.rs index 448be1cd..a3e3ec86 100644 --- a/embassy-stm32/src/can/bxcan.rs +++ b/embassy-stm32/src/can/bxcan.rs @@ -19,7 +19,7 @@ use crate::{interrupt, peripherals, Peripheral}; /// Contains CAN frame and additional metadata. /// /// Timestamp is available if `time` feature is enabled. -#[derive(Debug)] +#[derive(Debug, Clone, PartialEq, Eq)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] pub struct Envelope { #[cfg(feature = "time")]