Skip to content

Commit 4721dee

Browse files
committed
clippy
1 parent 319db74 commit 4721dee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/lean_compiler/src/a_simplify_lang.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ fn simplify_lines(
538538
} else if let Ok(right) = right.clone().try_into() {
539539
(right, left)
540540
} else {
541-
panic!("Unsupported equality assertion: {:?}, {:?}", left, right)
541+
panic!("Unsupported equality assertion: {left:?}, {right:?}")
542542
};
543543
res.push(SimpleLine::Assignment {
544544
var,

crates/lean_compiler/src/b_compile_intermediate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ fn compile_lines(
554554
}
555555
SimpleLine::PrivateInputStart { result } => {
556556
if !compiler.is_in_scope(result) {
557-
let mut current_scope_layout = compiler.stack_frame_layout.scopes.last_mut().unwrap();
557+
let current_scope_layout = compiler.stack_frame_layout.scopes.last_mut().unwrap();
558558
current_scope_layout
559559
.var_positions
560560
.insert(result.clone(), compiler.stack_pos);

crates/lookup/src/quotient_gkr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ fn sum_quotients_helper<F: PrimeCharacteristicRing + Sync + Send + Copy>(
220220
) -> Vec<Vec<F>> {
221221
assert_eq!(numerators_and_denominators.len(), n_groups);
222222
let n = numerators_and_denominators[0].len();
223-
assert!(n.is_power_of_two() && n >= 2, "n = {}", n);
223+
assert!(n.is_power_of_two() && n >= 2, "n = {n}");
224224
let mut new_numerators = Vec::new();
225225
let mut new_denominators = Vec::new();
226226
let (prev_numerators, prev_denominators) = numerators_and_denominators.split_at(n_groups / 2);

0 commit comments

Comments
 (0)