debug_assert

This commit is contained in:
Daniel Lubarov 2021-08-09 19:26:16 -07:00
parent 12d4b9adc3
commit 45fdc4d11f
2 changed files with 1 additions and 3 deletions

View File

@ -43,8 +43,7 @@ pub trait Gate<F: Extendable<D>, const D: usize>: 'static + Send + Sync {
values
.into_iter()
.map(|value| {
// TODO: Change to debug-only once our gate code is mostly finished/stable.
assert!(F::Extension::is_in_basefield(&value));
debug_assert!(F::Extension::is_in_basefield(&value));
value.to_basefield_array()[0]
})
.collect()

View File

@ -1,4 +1,3 @@
use std::collections::HashMap;
use std::convert::TryInto;
use anyhow::{ensure, Result};