diff --git a/core/src/lib.rs b/core/src/lib.rs index db240382..48064e32 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -482,6 +482,6 @@ mod tests { ) .await .expect("proof aggregation failed"); - println!("aggregated proof: {:?}", aggregated_proof); + println!("aggregated proof: {aggregated_proof:?}"); } } diff --git a/core/src/preflight/util.rs b/core/src/preflight/util.rs index 889134d9..10fb6394 100644 --- a/core/src/preflight/util.rs +++ b/core/src/preflight/util.rs @@ -136,11 +136,8 @@ pub async fn prepare_taiko_chain_input( RaikoError::Preflight("No L1 inclusion block hash for the requested block".to_owned()) })?; info!( - "L1 inclusion block number: {:?}, hash: {:?}. L1 state block number: {:?}, hash: {:?}", - l1_inclusion_block_number, - l1_inclusion_block_hash, + "L1 inclusion block number: {l1_inclusion_block_number:?}, hash: {l1_inclusion_block_hash:?}. L1 state block number: {:?}, hash: {l1_state_block_hash:?}", l1_state_header.number, - l1_state_block_hash ); // Fetch the tx data from either calldata or blobdata diff --git a/host/src/cache.rs b/host/src/cache.rs index c4cd9981..52fe34a5 100644 --- a/host/src/cache.rs +++ b/host/src/cache.rs @@ -55,10 +55,7 @@ pub async fn validate_input( let cached_block_hash = cache_input.block.header.hash_slow(); let real_block_hash = block.header.hash.unwrap(); - debug!( - "cache_block_hash={:?}, real_block_hash={:?}", - cached_block_hash, real_block_hash - ); + debug!("cache_block_hash={cached_block_hash:?}, real_block_hash={real_block_hash:?}"); // double check if cache is valid if cached_block_hash == real_block_hash { diff --git a/host/src/server/api/v3/proof/mod.rs b/host/src/server/api/v3/proof/mod.rs index b8f5e35d..2e739cc5 100644 --- a/host/src/server/api/v3/proof/mod.rs +++ b/host/src/server/api/v3/proof/mod.rs @@ -126,7 +126,7 @@ async fn proof_handler( for (task, req) in tasks { let raw_proof = manager.get_task_proof(&task).await?; let proof = serde_json::from_slice(&raw_proof)?; - debug!("req: {:?} gets proof: {:?}", req, proof); + debug!("req: {req:?} gets proof: {proof:?}"); proofs.push(proof); } diff --git a/lib/src/builder.rs b/lib/src/builder.rs index 3269f98b..b60be8f0 100644 --- a/lib/src/builder.rs +++ b/lib/src/builder.rs @@ -160,7 +160,7 @@ impl + DatabaseCommit + OptimisticDatabase> } = executor .execute((&block, total_difficulty).into()) .map_err(|e| { - error!("Error executing block: {:?}", e); + error!("Error executing block: {e:?}"); e })?; // Filter out the valid transactions so that the header checks only take these into account @@ -294,8 +294,8 @@ impl RethBlockBuilder { state_trie.insert_rlp(&state_trie_index, state_account)?; } - debug!("Accounts touched {:?}", account_touched); - debug!("Storages touched {:?}", storage_touched); + debug!("Accounts touched {account_touched:?}"); + debug!("Storages touched {storage_touched:?}"); Ok(state_trie.hash()) } diff --git a/pipeline/src/builder.rs b/pipeline/src/builder.rs index 7282cd85..9972c80d 100644 --- a/pipeline/src/builder.rs +++ b/pipeline/src/builder.rs @@ -140,7 +140,7 @@ impl CommandBuilder { println!("Using {tool}: {out}"); Some(PathBuf::from(out)) } else { - println!("Command succeeded with unknown output: {:?}", stdout); + println!("Command succeeded with unknown output: {stdout:?}"); None } } else { diff --git a/provers/risc0/driver/src/bonsai.rs b/provers/risc0/driver/src/bonsai.rs index ba53f22c..0c8d8565 100644 --- a/provers/risc0/driver/src/bonsai.rs +++ b/provers/risc0/driver/src/bonsai.rs @@ -107,10 +107,9 @@ pub async fn verify_bonsai_receipt( let client = bonsai_sdk::alpha_async::get_client_from_env(risc0_zkvm::VERSION).await?; let bonsai_err_log = session.logs(&client); return Err(BonsaiExecutionError::Fatal(format!( - "Workflow exited: {} - | err: {} | log: {:?}", + "Workflow exited: {} - | err: {} | log: {bonsai_err_log:?}", res.status, res.error_msg.unwrap_or_default(), - bonsai_err_log ))); } } diff --git a/provers/risc0/driver/src/snarks.rs b/provers/risc0/driver/src/snarks.rs index e3e597a8..a766ccf7 100644 --- a/provers/risc0/driver/src/snarks.rs +++ b/provers/risc0/driver/src/snarks.rs @@ -206,7 +206,7 @@ pub async fn verify_groth16_snark_impl( if verify_call_res.is_ok() { tracing_info!("SNARK verified successfully using {groth16_verifier_addr:?}!"); } else { - tracing_err!("SNARK verification failed: {:?}!", verify_call_res); + tracing_err!("SNARK verification failed: {verify_call_res:?}!"); } Ok(make_risc0_groth16_proof(enc_seal, image_id)) diff --git a/provers/sp1/driver/src/lib.rs b/provers/sp1/driver/src/lib.rs index f3f388e3..efcfd039 100644 --- a/provers/sp1/driver/src/lib.rs +++ b/provers/sp1/driver/src/lib.rs @@ -270,9 +270,8 @@ impl Prover for Sp1Prover { block_inputs, }; info!( - "Aggregating {:?} proofs with input: {:?}", + "Aggregating {:?} proofs with input: {aggregation_input:?}", input.proofs.len(), - aggregation_input ); let mut stdin = SP1Stdin::new(); @@ -285,7 +284,7 @@ impl Prover for Sp1Prover { stdin.write_proof(block_proof.into(), stark_vk.clone()); } _ => { - error!("unsupported proof type for aggregation: {:?}", sp1_proof); + error!("unsupported proof type for aggregation: {sp1_proof:?}"); } } } @@ -418,7 +417,7 @@ fn verify_sol(fixture: &RaikoProofFixture) -> ProverResult<()> { .current_dir(&*CONTRACT_PATH) .stdout(std::process::Stdio::inherit()) // Inherit the parent process' stdout .spawn(); - info!("Verification started {:?}", child); + info!("Verification started {child:?}"); child.map_err(|e| ProverError::GuestError(format!("Failed to run forge: {e}")))?; Ok(()) diff --git a/provers/sp1/driver/src/verifier.rs b/provers/sp1/driver/src/verifier.rs index f1f2454c..20c760e9 100644 --- a/provers/sp1/driver/src/verifier.rs +++ b/provers/sp1/driver/src/verifier.rs @@ -31,7 +31,7 @@ async fn main() { } }) .unwrap_or_else(|| PathBuf::from(DATA).join("taiko_mainnet-328833.json")); - println!("Reading GuestInput from {:?}", path); + println!("Reading GuestInput from {path:?}"); let json = std::fs::read_to_string(path).unwrap(); // Deserialize the input. diff --git a/provers/sp1/guest/src/zk_op.rs b/provers/sp1/guest/src/zk_op.rs index 71330b1f..b28be5e2 100644 --- a/provers/sp1/guest/src/zk_op.rs +++ b/provers/sp1/guest/src/zk_op.rs @@ -116,7 +116,7 @@ harness::zk_suits!( p.x().to_big_endian(&mut p_x).unwrap(); p.y().to_big_endian(&mut p_y).unwrap(); - println!("{:?}, {:?}:?", p_x, p_y); + println!("{p_x:?}, {p_y:?}:?"); // Deserialize AffinePoint in Sp1 let p = be_bytes_to_point(&input); @@ -154,4 +154,3 @@ harness::zk_suits!( } } ); -