Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 3, 2025
1 parent 2de7db1 commit a058034
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ impl Serialize for BlockRootOrBlockMergePublicInputs {
let N = BLOCK_ROOT_OR_BLOCK_MERGE_PUBLIC_INPUTS_LENGTH;

fn serialize(self) -> [Field; Self::N] {
let mut fields: BoundedVec<Field, Self::N> =
BoundedVec::new();
let mut fields: BoundedVec<Field, Self::N> = BoundedVec::new();

fields.extend_from_array(self.previous_archive.serialize());
fields.extend_from_array(self.new_archive.serialize());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ impl Serialize for PrivateToAvmAccumulatedData {
let N = PRIVATE_TO_AVM_ACCUMULATED_DATA_LENGTH;

fn serialize(self) -> [Field; Self::N] {
let mut fields: BoundedVec<Field, Self::N> =
BoundedVec::new();
let mut fields: BoundedVec<Field, Self::N> = BoundedVec::new();

fields.extend_from_array(self.note_hashes);
fields.extend_from_array(self.nullifiers);
Expand Down Expand Up @@ -104,8 +103,7 @@ impl Serialize for PrivateToAvmAccumulatedDataArrayLengths {
let N = NUM_PRIVATE_TO_AVM_ACCUMULATED_DATA_ARRAYS;

fn serialize(self) -> [Field; Self::N] {
let mut fields: BoundedVec<Field, Self::N> =
BoundedVec::new();
let mut fields: BoundedVec<Field, Self::N> = BoundedVec::new();

fields.push(self.note_hashes as Field);
fields.push(self.nullifiers as Field);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ impl Serialize for PrivateToPublicAccumulatedData {
let N = PRIVATE_TO_PUBLIC_ACCUMULATED_DATA_LENGTH;

fn serialize(self) -> [Field; Self::N] {
let mut fields: BoundedVec<Field, Self::N> =
BoundedVec::new();
let mut fields: BoundedVec<Field, Self::N> = BoundedVec::new();

fields.extend_from_array(self.note_hashes);
fields.extend_from_array(self.nullifiers);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ impl Serialize for PrivateKernelCircuitPublicInputs {
let N = PRIVATE_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH;

fn serialize(self) -> [Field; Self::N] {
let mut fields: BoundedVec<Field, Self::N> =
BoundedVec::new();
let mut fields: BoundedVec<Field, Self::N> = BoundedVec::new();

fields.extend_from_array(self.constants.serialize());
fields.push(self.min_revertible_side_effect_counter as Field);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ impl Serialize for PrivateToPublicKernelCircuitPublicInputs {
let N = PRIVATE_TO_PUBLIC_KERNEL_CIRCUIT_PUBLIC_INPUTS_LENGTH;

fn serialize(self) -> [Field; Self::N] {
let mut fields: BoundedVec<Field, Self::N> =
BoundedVec::new();
let mut fields: BoundedVec<Field, Self::N> = BoundedVec::new();

fields.extend_from_array(self.constants.serialize());
fields.extend_from_array(self.rollup_validation_requests.serialize());
Expand Down

0 comments on commit a058034

Please sign in to comment.