From 7604ea315bf62d10547f730bceff76767198e72a Mon Sep 17 00:00:00 2001 From: Liam Kinne Date: Wed, 3 Jul 2024 20:56:26 +1000 Subject: [PATCH] Add clone trait to dhcp event --- src/socket/dhcpv4.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket/dhcpv4.rs b/src/socket/dhcpv4.rs index 13ecbd3a..b1b3cb58 100644 --- a/src/socket/dhcpv4.rs +++ b/src/socket/dhcpv4.rs @@ -140,7 +140,7 @@ impl Default for RetryConfig { } /// Return value for the `Dhcpv4Socket::poll` function -#[derive(Debug, PartialEq, Eq)] +#[derive(Debug, PartialEq, Eq, Clone)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] pub enum Event<'a> { /// Configuration has been lost (for example, the lease has expired)