From: Matt Corallo Date: Wed, 19 Jul 2023 20:11:35 +0000 (+0000) Subject: Make `requires_unknown_bits_from` param type bindings compatible X-Git-Tag: v0.0.116~3^2~3 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=8c61d9d0dcee395c977e5dd92ab8bef4df2ab49c;p=rust-lightning 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. --- 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)| {