Fix a clippy redundant range lint

This commit is contained in:
teor 2021-02-16 12:57:09 +10:00
parent df59468085
commit 55613db846
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ impl ZcashSerialize for Input {
let total_len = height_len + data.as_ref().len();
writer.write_compactsize(total_len as u64)?;
write_coinbase_height(*height, &mut writer)?;
writer.write_all(&data.as_ref()[..])?;
writer.write_all(data.as_ref())?;
writer.write_u32::<LittleEndian>(*sequence)?;
}
}