mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-10 01:33:07 +00:00
debug_assert
This commit is contained in:
parent
12d4b9adc3
commit
45fdc4d11f
@ -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()
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
use std::collections::HashMap;
|
||||
use std::convert::TryInto;
|
||||
|
||||
use anyhow::{ensure, Result};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user