diff options
| author | korbin <[email protected]> | 2025-07-27 06:47:25 -0600 |
|---|---|---|
| committer | korbin <[email protected]> | 2025-07-27 06:47:25 -0600 |
| commit | 4c98cda167ab8b704ff087be7af99a8db5915d31 (patch) | |
| tree | 7bbee8c1ff2a36936bd22fb792e5dbb82fd15df0 /embassy-net/src | |
| parent | 77a8bc27e9c34e363f321132ebb9e8d8ff684a9f (diff) | |
add missing PartialEq and Eq trait derives to embassy-net config structs
Diffstat (limited to 'embassy-net/src')
| -rw-r--r-- | embassy-net/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index 2b1888170..0bc6ffe6c 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs | |||
| @@ -171,7 +171,7 @@ impl Default for DhcpConfig { | |||
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | /// Network stack configuration. | 173 | /// Network stack configuration. |
| 174 | #[derive(Debug, Clone, Default)] | 174 | #[derive(Debug, Clone, Default, PartialEq, Eq)] |
| 175 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 175 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 176 | #[non_exhaustive] | 176 | #[non_exhaustive] |
| 177 | pub struct Config { | 177 | pub struct Config { |
| @@ -223,7 +223,7 @@ impl Config { | |||
| 223 | 223 | ||
| 224 | /// Network stack IPv4 configuration. | 224 | /// Network stack IPv4 configuration. |
| 225 | #[cfg(feature = "proto-ipv4")] | 225 | #[cfg(feature = "proto-ipv4")] |
| 226 | #[derive(Debug, Clone, Default)] | 226 | #[derive(Debug, Clone, Default, PartialEq, Eq)] |
| 227 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 227 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 228 | pub enum ConfigV4 { | 228 | pub enum ConfigV4 { |
| 229 | /// Do not configure IPv4. | 229 | /// Do not configure IPv4. |
| @@ -238,7 +238,7 @@ pub enum ConfigV4 { | |||
| 238 | 238 | ||
| 239 | /// Network stack IPv6 configuration. | 239 | /// Network stack IPv6 configuration. |
| 240 | #[cfg(feature = "proto-ipv6")] | 240 | #[cfg(feature = "proto-ipv6")] |
| 241 | #[derive(Debug, Clone, Default)] | 241 | #[derive(Debug, Clone, Default, PartialEq, Eq)] |
| 242 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 242 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 243 | pub enum ConfigV6 { | 243 | pub enum ConfigV6 { |
| 244 | /// Do not configure IPv6. | 244 | /// Do not configure IPv6. |
