Skip to content

Commit 1c78e16

Browse files
kunxian-xialispc
authored andcommitted
add default implementation for fork and merge functions (#39)
1 parent 3d40ae4 commit 1c78e16

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

halo2_proofs/src/plonk/circuit.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,10 +568,14 @@ pub trait Assignment<F: Field>: Sized + Send {
568568
AR: Into<String>;
569569

570570
/// Fork
571-
fn fork(&mut self, ranges: &[Range<usize>]) -> Result<Vec<Self>, Error>;
571+
fn fork(&mut self, ranges: &[Range<usize>]) -> Result<Vec<Self>, Error> {
572+
unimplemented!("fork is not implemented by default")
573+
}
572574

573575
/// Merge
574-
fn merge(&mut self, sub_cs: Vec<Self>) -> Result<(), Error>;
576+
fn merge(&mut self, sub_cs: Vec<Self>) -> Result<(), Error> {
577+
unimplemented!("merge is not implemented by default")
578+
}
575579

576580
/// Queries the cell of an instance column at a particular absolute row.
577581
///

0 commit comments

Comments
 (0)