mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 23:33:07 +00:00
Clippy
This commit is contained in:
parent
300de9d4d6
commit
6bee508f6a
@ -1,19 +1,16 @@
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::str::FromStr;
|
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use eth_trie_utils::partial_trie::PartialTrie;
|
use eth_trie_utils::partial_trie::PartialTrie;
|
||||||
use ethereum_types::{Address, BigEndianHash, H256, U256};
|
use ethereum_types::{Address, BigEndianHash, H256, U256};
|
||||||
use hex_literal::hex;
|
|
||||||
use keccak_hash::keccak;
|
use keccak_hash::keccak;
|
||||||
use rand::{thread_rng, Rng};
|
use rand::{thread_rng, Rng};
|
||||||
|
|
||||||
use crate::cpu::kernel::aggregator::{combined_kernel, KERNEL};
|
use crate::cpu::kernel::aggregator::KERNEL;
|
||||||
use crate::cpu::kernel::constants::global_metadata::GlobalMetadata;
|
use crate::cpu::kernel::constants::global_metadata::GlobalMetadata;
|
||||||
use crate::cpu::kernel::interpreter::Interpreter;
|
use crate::cpu::kernel::interpreter::Interpreter;
|
||||||
use crate::cpu::kernel::tests::mpt::{extension_to_leaf, nibbles_64};
|
use crate::cpu::kernel::tests::mpt::nibbles_64;
|
||||||
use crate::generation::mpt::{all_mpt_prover_inputs_reversed, AccountRlp};
|
use crate::generation::mpt::{all_mpt_prover_inputs_reversed, AccountRlp};
|
||||||
use crate::generation::TrieInputs;
|
|
||||||
|
|
||||||
fn test_account(code: &[u8]) -> AccountRlp {
|
fn test_account(code: &[u8]) -> AccountRlp {
|
||||||
AccountRlp {
|
AccountRlp {
|
||||||
@ -30,10 +27,6 @@ fn random_code() -> Vec<u8> {
|
|||||||
(0..num_bytes).map(|_| rng.gen()).collect()
|
(0..num_bytes).map(|_| rng.gen()).collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_account_rlp(code: &[u8]) -> Vec<u8> {
|
|
||||||
rlp::encode(&test_account(code)).to_vec()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Stolen from `tests/mpt/insert.rs`
|
// Stolen from `tests/mpt/insert.rs`
|
||||||
fn prepare_interpreter(
|
fn prepare_interpreter(
|
||||||
interpreter: &mut Interpreter,
|
interpreter: &mut Interpreter,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user