소스 검색

Add clone trait to dhcp event

Liam Kinne 11 달 전
부모
커밋
7604ea315b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)