Fix stable clippy lints
This commit is contained in:
parent
3fc245343e
commit
5905230174
|
@ -8,6 +8,7 @@ use halo2::{
|
|||
use plotters::prelude::*;
|
||||
use std::marker::PhantomData;
|
||||
|
||||
#[allow(clippy::many_single_char_names)]
|
||||
fn main() {
|
||||
/// This represents an advice column at a certain row in the ConstraintSystem
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
|
@ -372,7 +373,7 @@ fn main() {
|
|||
}
|
||||
|
||||
let a = Fp::rand();
|
||||
let a_squared = a * &a;
|
||||
let a_squared = a * a;
|
||||
let aux = Fp::one() + Fp::one();
|
||||
let lookup_table = vec![aux, a, a, Fp::zero()];
|
||||
let lookup_table_2 = vec![Fp::zero(), a, a_squared, Fp::zero()];
|
||||
|
|
|
@ -107,7 +107,7 @@ pub fn circuit_layout<F: Field, ConcreteCircuit: Circuit<F>, DB: DrawingBackend>
|
|||
if let Some(offset) = region.offset {
|
||||
// Sort the region's columns according to the defined ordering.
|
||||
let mut columns: Vec<_> = region.columns.into_iter().collect();
|
||||
columns.sort_unstable_by(|a, b| column_index(a).cmp(&column_index(b)));
|
||||
columns.sort_unstable_by_key(|a| column_index(a));
|
||||
|
||||
// Render contiguous parts of the same region as a single box.
|
||||
let mut width = None;
|
||||
|
|
Loading…
Reference in New Issue