Skip to content

Commit 8c61d9d

Browse files
committed
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.
1 parent 9f9ed59 commit 8c61d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ impl<T: sealed::Context> Features<T> {
728728
}
729729

730730
/// Returns true if this `Features` object contains required features unknown by `other`.
731-
pub fn requires_unknown_bits_from(&self, other: &Features<T>) -> bool {
731+
pub fn requires_unknown_bits_from(&self, other: &Self) -> bool {
732732
// Bitwise AND-ing with all even bits set except for known features will select required
733733
// unknown features.
734734
self.flags.iter().enumerate().any(|(i, &byte)| {

0 commit comments

Comments
 (0)