derive Eq for config

This commit is contained in:
Dario Nieuwenhuis 2021-04-12 18:13:22 +02:00
parent ccdcd9df17
commit 439092dc59

View file

@ -25,7 +25,7 @@ pub enum Event {
Configured(Config), Configured(Config),
} }
#[derive(Debug, Clone)] #[derive(Debug, Clone, PartialEq, Eq)]
pub struct Config { pub struct Config {
pub address: Ipv4Cidr, pub address: Ipv4Cidr,
pub gateway: Option<Ipv4Address>, pub gateway: Option<Ipv4Address>,