chore(crypto): Make Clippy happy.

This commit is contained in:
Ivan Enderlin
2022-07-04 13:06:11 +02:00
parent 909ada43d7
commit 05561a8777

View File

@@ -15,6 +15,7 @@
use std::{
convert::TryFrom,
io::{Cursor, Read},
ops::DerefMut,
};
use bs58;
@@ -144,7 +145,7 @@ impl RecoveryKey {
let mut expected_parity = [0u8; 1];
decoded.read_exact(&mut prefix)?;
decoded.read_exact(&mut *key)?;
decoded.read_exact(key.deref_mut())?;
decoded.read_exact(&mut expected_parity)?;
let expected_parity = expected_parity[0];