Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions mg-admin-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {}
Expand Down