We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 532758a commit edaabbfCopy full SHA for edaabbf
src/arrays.rs
@@ -13,9 +13,8 @@ pub struct Arrays<I: Iterator, const N: usize> {
13
14
impl<I: Iterator, const N: usize> Arrays<I, N> {
15
pub(crate) fn new(iter: I) -> Self {
16
- const {
17
- assert!(N > 0);
18
- }
+ // this is effectively assert!(N > 0);
+ const { N - 1 };
19
// TODO should we use iter.fuse() instead? Otherwise remainder may behave strangely
20
Self {
21
iter,
0 commit comments