From e23d148b72ebc8d1a37f10b72a80a8adf2a0711e Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Thu, 22 Jul 2021 12:07:17 -0600 Subject: [PATCH] minor clippy fixes --- examples/circuit-layout.rs | 2 +- src/circuit/floor_planner/v1/strategy.rs | 6 +++--- tests/plonk_api.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/circuit-layout.rs b/examples/circuit-layout.rs index 5593b44b..d28b2676 100644 --- a/examples/circuit-layout.rs +++ b/examples/circuit-layout.rs @@ -315,7 +315,7 @@ fn main() { let circuit: MyCircuit = MyCircuit { a: None, - lookup_table: lookup_table, + lookup_table, }; let root = BitMapBackend::new("example-circuit-layout.png", (1024, 768)).into_drawing_area(); diff --git a/src/circuit/floor_planner/v1/strategy.rs b/src/circuit/floor_planner/v1/strategy.rs index 8b43e205..478fe8ee 100644 --- a/src/circuit/floor_planner/v1/strategy.rs +++ b/src/circuit/floor_planner/v1/strategy.rs @@ -233,7 +233,7 @@ fn test_slot_in() { region_index: 0.into(), columns: vec![Column::new(0, Any::Advice), Column::new(1, Any::Advice)] .into_iter() - .map(|a| Column::::from(a).into()) + .map(|a| a.into()) .collect(), row_count: 15, }, @@ -241,7 +241,7 @@ fn test_slot_in() { region_index: 1.into(), columns: vec![Column::new(2, Any::Advice)] .into_iter() - .map(|a| Column::::from(a).into()) + .map(|a| a.into()) .collect(), row_count: 10, }, @@ -249,7 +249,7 @@ fn test_slot_in() { region_index: 2.into(), columns: vec![Column::new(2, Any::Advice), Column::new(0, Any::Advice)] .into_iter() - .map(|a| Column::::from(a).into()) + .map(|a| a.into()) .collect(), row_count: 10, }, diff --git a/tests/plonk_api.rs b/tests/plonk_api.rs index dfa65cd9..d738303a 100644 --- a/tests/plonk_api.rs +++ b/tests/plonk_api.rs @@ -397,7 +397,7 @@ fn plonk_api() { let circuit: MyCircuit = MyCircuit { a: Some(a), - lookup_table: lookup_table, + lookup_table, }; // Initialize the proving key