Replace type alias with zero-size struct

Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Gygaxis Vainhardt 2022-12-08 16:35:49 -04:00 committed by GitHub
parent 9807e325d7
commit 938b122814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ pub enum SpendError {
}
/// The only error that can occur here is if outputs are disabled for this builder.
pub type OutputsDisabled = ();
#[derive(Debug, PartialEq, Eq)]
pub struct OutputsDisabled;
impl From<halo2_proofs::plonk::Error> for BuildError {
fn from(e: halo2_proofs::plonk::Error) -> Self {