Make `Error` a non_exhaustive type.

This commit is contained in:
Sean Bowe 2023-03-21 15:06:43 -06:00
parent cae65c4b60
commit 82dd2fb3f5
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ and this project adheres to Rust's notion of
`Column<Fixed>` variant.
- `query_fixed` now no longer takes a `Rotation` argument,
and can only be used to query the current rotation.
- `Error` is now a [`non_exhaustive`](https://doc.rust-lang.org/reference/attributes/type_system.html) type.
## [0.2.0] - 2022-06-23
### Added

View File

@ -6,6 +6,7 @@ use super::{Any, Column};
/// This is an error that could occur during proving or circuit synthesis.
// TODO: these errors need to be cleaned up
#[non_exhaustive]
#[derive(Debug)]
pub enum Error {
/// This is an error that can occur during synthesis of the circuit, for