mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 00:03:10 +00:00
Clippy
This commit is contained in:
parent
aaa38b33ba
commit
c4025063de
@ -341,7 +341,7 @@ fn simulate_cpu_between_labels_and_get_user_jumps<F: Field>(
|
||||
final_label: &str,
|
||||
state: &mut GenerationState<F>,
|
||||
) -> Result<(), ProgramError> {
|
||||
if let Some(_) = state.jumpdest_addresses {
|
||||
if state.jumpdest_addresses.is_some() {
|
||||
Ok(())
|
||||
} else {
|
||||
const JUMP_OPCODE: u8 = 0x56;
|
||||
|
||||
@ -410,7 +410,7 @@ impl<'a> Iterator for CodeIterator<'a> {
|
||||
}
|
||||
let opcode = code[*pos];
|
||||
let old_pos = *pos;
|
||||
*pos += if opcode >= PUSH1_OPCODE && opcode <= PUSH32_OPCODE {
|
||||
*pos += if (PUSH1_OPCODE..=PUSH32_OPCODE).contains(&opcode) {
|
||||
(opcode - PUSH1_OPCODE + 2).into()
|
||||
} else {
|
||||
1
|
||||
|
||||
@ -177,7 +177,7 @@ impl<F: Field> GenerationState<F> {
|
||||
pub(crate) fn soft_clone(&self) -> GenerationState<F> {
|
||||
Self {
|
||||
inputs: self.inputs.clone(),
|
||||
registers: self.registers.clone(),
|
||||
registers: self.registers,
|
||||
memory: self.memory.clone(),
|
||||
traces: Traces::default(),
|
||||
rlp_prover_inputs: self.rlp_prover_inputs.clone(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user