Implement `Debug`/`PartialEq`/`Eq` for `Destination`
authorMatt Corallo <git@bluematt.me>
Sat, 10 Feb 2024 02:27:59 +0000 (02:27 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 10 Feb 2024 02:27:59 +0000 (02:27 +0000)
lightning/src/onion_message/messenger.rs

index f2bb685f8bb2c1297443f57808a3ce7b284db412..0a38022dbb5883cdcf06a5e3340a68079ae9f23c 100644 (file)
@@ -413,7 +413,7 @@ impl OnionMessagePath {
 }
 
 /// The destination of an onion message.
-#[derive(Clone)]
+#[derive(Clone, Debug, PartialEq, Eq)]
 pub enum Destination {
        /// We're sending this onion message to a node.
        Node(PublicKey),