From 938b1228140783f01b05563585ffa26d11eacc99 Mon Sep 17 00:00:00 2001 From: Gygaxis Vainhardt Date: Thu, 8 Dec 2022 16:35:49 -0400 Subject: [PATCH] Replace type alias with zero-size struct Co-authored-by: Daira Hopwood --- src/builder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/builder.rs b/src/builder.rs index d3f4332f..f69a3cb6 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -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 for BuildError { fn from(e: halo2_proofs::plonk::Error) -> Self {