Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bazzilic committed Aug 28, 2023
1 parent 7318e96 commit 49b34f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion taiga_halo2/src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ impl BorshSerialize for ActionInstance {
#[cfg(feature = "borsh")]
impl BorshDeserialize for ActionInstance {
fn deserialize_reader<R: std::io::Read>(reader: &mut R) -> std::io::Result<Self> {
use std::io;
use ff::PrimeField;
use std::io;
let anchor_bytes = <[u8; 32]>::deserialize_reader(reader)?;
let anchor = Option::from(pallas::Base::from_repr(anchor_bytes))
.ok_or_else(|| io::Error::new(io::ErrorKind::InvalidData, "anchor not in field"))?;
Expand Down
2 changes: 1 addition & 1 deletion taiga_halo2/src/circuit/vp_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ impl BorshSerialize for VPVerifyingInfo {
#[cfg(feature = "borsh")]
impl BorshDeserialize for VPVerifyingInfo {
fn deserialize_reader<R: std::io::Read>(reader: &mut R) -> std::io::Result<Self> {
use std::io;
use ff::PrimeField;
use std::io;
// Read vk
use crate::circuit::vp_examples::TrivialValidityPredicateCircuit;
let params = SETUP_PARAMS_MAP.get(&VP_CIRCUIT_PARAMS_SIZE).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion taiga_halo2/src/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ impl BorshSerialize for Note {
#[cfg(feature = "borsh")]
impl BorshDeserialize for Note {
fn deserialize_reader<R: std::io::Read>(reader: &mut R) -> std::io::Result<Self> {
use std::io;
use byteorder::{LittleEndian, ReadBytesExt};
use std::io;
// Read app_vk
let mut app_vk_bytes = [0u8; 32];
reader.read_exact(&mut app_vk_bytes)?;
Expand Down

0 comments on commit 49b34f1

Please sign in to comment.