mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Clarify messages in non-debug assertions
This commit is contained in:
@@ -65,7 +65,10 @@ impl BpPlusGenerators {
|
||||
pub(crate) fn reduce(&self, generators: usize) -> Self {
|
||||
// Round to the nearest power of 2
|
||||
let generators = padded_pow_of_2(generators);
|
||||
assert!(generators <= self.g_bold.len());
|
||||
assert!(
|
||||
generators <= self.g_bold.len(),
|
||||
"instantiated with less generators than application required"
|
||||
);
|
||||
|
||||
BpPlusGenerators { g_bold: &self.g_bold[.. generators], h_bold: &self.h_bold[.. generators] }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user