We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 074d370 commit 154798cCopy full SHA for 154798c
1 file changed
crates/dkg/src/nodesigs.rs
@@ -138,7 +138,7 @@ impl NodeSigBcast {
138
/// Returns a copy of all signatures if every slot is filled, otherwise `None`.
139
fn all_sigs(sigs: &[Option<Vec<u8>>]) -> Option<Vec<Vec<u8>>> {
140
if sigs.iter().all(|s| s.is_some()) {
141
- Some(sigs.iter().cloned().flatten().collect())
+ Some(sigs.iter().flatten().cloned().collect())
142
} else {
143
None
144
}
0 commit comments