From 8c61d9d0dcee395c977e5dd92ab8bef4df2ab49c Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 19 Jul 2023 20:11:35 +0000 Subject: [PATCH] Make `requires_unknown_bits_from` param type bindings compatible While bindings should probably be able to figure out that this is the same type as `Self`, for now we simply swap the type to make the bindings generator have an easier go of it. --- lightning/src/ln/features.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/ln/features.rs b/lightning/src/ln/features.rs index 6309eea41..5de383b1f 100644 --- a/lightning/src/ln/features.rs +++ b/lightning/src/ln/features.rs @@ -728,7 +728,7 @@ impl Features { } /// Returns true if this `Features` object contains required features unknown by `other`. - pub fn requires_unknown_bits_from(&self, other: &Features) -> bool { + pub fn requires_unknown_bits_from(&self, other: &Self) -> bool { // Bitwise AND-ing with all even bits set except for known features will select required // unknown features. self.flags.iter().enumerate().any(|(i, &byte)| { -- 2.39.5