From 241e26fe8644de24b5b69ed9867c54089e77d6b7 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Thu, 14 May 2026 15:17:20 -0500 Subject: [PATCH] Derive PartialEq and Eq for AsyncPaymentsRole Allows callers to compare role values directly, which is useful in tests and conditional logic gating async payments behavior. --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 014d6216a1..558a4d0618 100644 --- a/src/config.rs +++ b/src/config.rs @@ -681,7 +681,7 @@ impl From for LdkMaxDustHTLCExposure { } } -#[derive(Debug, Clone, Copy)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] #[cfg_attr(feature = "uniffi", derive(uniffi::Enum))] /// The role of the node in an asynchronous payments context. ///