Add PartialEq to PeerId/ConnectionId
This allows for easy comparison in tests.
@@ -34,7 +34,7 @@ pub use r#loop::{
/// A wrapper for a PeerId.
///
/// This type constrains a dispatcher to peer-specific messages
-#[derive(Debug, Clone, Default)]
+#[derive(Debug, Clone, Default, PartialEq)]
pub struct PeerId(String);
impl std::ops::Deref for PeerId {
@@ -72,7 +72,7 @@ impl fmt::Display for PeerId {
/// A wrapper for Connection Id
///
/// The type constrains a dispatcher to connection-specific messages
-#[derive(Debug, Clone, Default)]
+#[derive(Debug, Clone, Default, PartialEq)]
pub struct ConnectionId(String);
impl std::ops::Deref for ConnectionId {
