Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykoren committed Jul 10, 2023
1 parent d8089d5 commit 1ac9458
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions zcash_primitives/src/transaction/components/issuance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ pub fn read_v5_bundle<R: Read>(mut reader: R) -> io::Result<Option<IssueBundle<S
let ik = read_ik(&mut reader);
let authorization = read_authorization(&mut reader);

Ok(Some(IssueBundle::from_parts(ik?, NonEmpty::from_vec(actions).unwrap(), authorization?)))
Ok(Some(IssueBundle::from_parts(
ik?,
NonEmpty::from_vec(actions).unwrap(),
authorization?,
)))
}
}

Expand All @@ -42,11 +46,7 @@ fn read_action<R: Read>(mut reader: R) -> io::Result<IssueAction> {
let notes = Vector::read(&mut reader, |r| read_note(r))?;
let asset_descr_bytes = Vector::read(&mut reader, |r| r.read_u8())?;
let asset_descr: String = String::from_utf8(asset_descr_bytes).unwrap();
Ok(IssueAction::from_parts(
asset_descr,
notes,
finalize,
))
Ok(IssueAction::from_parts(asset_descr, notes, finalize))
}

fn read_note<R: Read>(mut reader: R) -> io::Result<Note> {
Expand Down
2 changes: 1 addition & 1 deletion zcash_primitives/src/transaction/txid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ use std::borrow::Borrow;
use std::convert::TryFrom;
use std::io::Write;

use crate::consensus::{BlockHeight, BranchId};
use blake2b_simd::{Hash as Blake2bHash, Params, State};
use byteorder::{LittleEndian, WriteBytesExt};
use ff::PrimeField;
use orchard::bundle::{self as orchardbundle};
use orchard::issuance::{IssueBundle, Signed};
use crate::consensus::{BlockHeight, BranchId};

use super::{
components::{
Expand Down

0 comments on commit 1ac9458

Please sign in to comment.