Bladeren bron

Add clone trait to dhcp event

Liam Kinne 9 maanden geleden
bovenliggende
commit
7604ea315b
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/socket/dhcpv4.rs

+ 1 - 1
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)