Fix clippy complaints
This commit is contained in:
parent
0205252692
commit
1ae2bd727c
|
@ -80,6 +80,7 @@ pub trait Version {
|
|||
fn write<W: io::Write>(data: &Self::NodeData, w: &mut W) -> io::Result<()>;
|
||||
|
||||
/// Converts to byte representation.
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn to_bytes(data: &Self::NodeData) -> Vec<u8> {
|
||||
let mut buf = [0u8; MAX_NODE_DATA_SIZE];
|
||||
let pos = {
|
||||
|
|
|
@ -24,6 +24,7 @@ pub const FLAGS_EXPECTED_UNSET: u8 = !(FLAG_SPENDS_ENABLED | FLAG_OUTPUTS_ENABLE
|
|||
pub fn read_v5_bundle<R: Read>(
|
||||
mut reader: R,
|
||||
) -> io::Result<Option<orchard::Bundle<Authorized, Amount>>> {
|
||||
#[allow(clippy::redundant_closure)]
|
||||
let actions_without_auth = Vector::read(&mut reader, |r| read_action_without_auth(r))?;
|
||||
if actions_without_auth.is_empty() {
|
||||
Ok(None)
|
||||
|
|
Loading…
Reference in New Issue