Skip to content

Commit

Permalink
chore: turn on associated type defaults (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang authored Aug 17, 2024
1 parent e5ddf67 commit 1492fd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions halo2_proofs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// #![deny(unsafe_code)]
#![allow(clippy::uninit_vec)]
#![allow(clippy::too_many_arguments)]
#![feature(associated_type_defaults)]

#[cfg(feature = "counter")]
extern crate lazy_static;
Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/src/plonk/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ pub trait Circuit<F: Field> {
type FloorPlanner: FloorPlanner;
/// Optional circuit configuration parameters. Requires the `circuit-params` feature.
#[cfg(feature = "circuit-params")]
type Params: Default;
type Params: Default = ();

/// Returns a copy of this circuit with no witness values (i.e. all witnesses set to
/// `None`). For most circuits, this will be equal to `Self::default()`.
Expand Down

0 comments on commit 1492fd0

Please sign in to comment.