diff --git a/mg-admin-client/src/lib.rs b/mg-admin-client/src/lib.rs index 2be86fba..9a0024b1 100644 --- a/mg-admin-client/src/lib.rs +++ b/mg-admin-client/src/lib.rs @@ -15,7 +15,7 @@ progenitor::generate_api!( post_hook = (|log: &slog::Logger, result: &Result<_, _>| { slog::trace!(log, "client response"; "result" => ?result); }), - derives = [schemars::JsonSchema], + derives = [schemars::JsonSchema, PartialEq], ); impl std::hash::Hash for types::Prefix4 { @@ -25,12 +25,6 @@ impl std::hash::Hash for types::Prefix4 { } } -impl std::cmp::PartialEq for types::Prefix4 { - fn eq(&self, other: &Self) -> bool { - self.value.eq(&other.value) && self.length.eq(&other.length) - } -} - impl std::cmp::Eq for types::Prefix4 {} impl Copy for types::Prefix4 {}