Skip to content

Commit

Permalink
Fix cargo fmt and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerTaule committed Oct 7, 2024
1 parent 5a49d15 commit e132ca7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 23 deletions.
8 changes: 7 additions & 1 deletion proofman/src/proofman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,13 @@ impl<F: Field + 'static> ProofMan<F> {
}

if !options.verify_constraints || stage < num_commit_stages {
Self::calculate_challenges(stage, &mut provers, pctx.clone(), &mut transcript, options.verify_constraints);
Self::calculate_challenges(
stage,
&mut provers,
pctx.clone(),
&mut transcript,
options.verify_constraints,
);
}
}

Expand Down
39 changes: 18 additions & 21 deletions proofman/src/verify_constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn verify_constraints_proof<F: Field>(
ectx: Arc<ExecutionCtx>,
sctx: Arc<SetupCtx>,
provers: Vec<Box<dyn Prover<F>>>,
mut witness_lib: Box<dyn WitnessLibrary<F>>
mut witness_lib: Box<dyn WitnessLibrary<F>>,
) {
const MY_NAME: &str = "CstrVrfy";
const FIELD_EXTENSION: usize = 3;
Expand Down Expand Up @@ -60,27 +60,24 @@ pub fn verify_constraints_proof<F: Field>(
valid,
line_str.to_str().unwrap()
);
} else if constraint.n_rows == 0 {
log::debug!(
"{}: · Constraint #{} (stage {}) {} -> {:?}",
MY_NAME,
constraint.id,
constraint.stage,
valid,
line_str.to_str().unwrap()
);
} else {
if constraint.n_rows == 0 {
log::debug!(
"{}: · Constraint #{} (stage {}) {} -> {:?}",
MY_NAME,
constraint.id,
constraint.stage,
valid,
line_str.to_str().unwrap()
);
} else {
log::info!(
"{}: · Constraint #{} (stage {}) {} -> {:?}",
MY_NAME,
constraint.id,
constraint.stage,
valid,
line_str.to_str().unwrap()
);
}

log::info!(
"{}: · Constraint #{} (stage {}) {} -> {:?}",
MY_NAME,
constraint.id,
constraint.stage,
valid,
line_str.to_str().unwrap()
);
}
if constraint.n_rows > 0 {
valid_constraints_prover = false;
Expand Down
2 changes: 1 addition & 1 deletion provers/starks-lib-c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ build = "build.rs"
log.workspace = true

[features]
default = ["no_lib_link"]
default = []
no_lib_link = []

0 comments on commit e132ca7

Please sign in to comment.