This commit is contained in:
John Smith 2023-12-10 13:26:21 -05:00 committed by Christien Rioux
parent 827a3443b0
commit 5f5515af5e

View File

@ -55,7 +55,7 @@ impl RPCOperationWatchValueQ {
) -> Vec<u8> { ) -> Vec<u8> {
// Needed because RangeSetBlaze uses different types here all the time // Needed because RangeSetBlaze uses different types here all the time
#[allow(clippy::unnecessary_cast)] #[allow(clippy::unnecessary_cast)]
let subkeys_len = subkeys.len() as usize; let subkeys_len = subkeys.ranges_len() as usize;
let mut sig_data = Vec::with_capacity(PUBLIC_KEY_LENGTH + 4 + (subkeys_len * 8) + 8 + 4); let mut sig_data = Vec::with_capacity(PUBLIC_KEY_LENGTH + 4 + (subkeys_len * 8) + 8 + 4);
sig_data.extend_from_slice(&key.kind.0); sig_data.extend_from_slice(&key.kind.0);