@@ -11,7 +11,7 @@ pub use generic_array;
11
11
12
12
use core:: { marker:: PhantomData , slice} ;
13
13
use generic_array:: {
14
- typenum:: { IsLessOrEqual , LeEq , NonZero , U255 } ,
14
+ typenum:: { IsLess , Le , NonZero , U256 } ,
15
15
ArrayLength , GenericArray ,
16
16
} ;
17
17
@@ -45,8 +45,8 @@ pub type LazyBuffer<B> = BlockBuffer<B, Lazy>;
45
45
#[ derive( Default , Clone , Debug ) ]
46
46
pub struct BlockBuffer < BlockSize , Kind >
47
47
where
48
- BlockSize : ArrayLength < u8 > + IsLessOrEqual < U255 > ,
49
- LeEq < BlockSize , U255 > : NonZero ,
48
+ BlockSize : ArrayLength < u8 > + IsLess < U256 > ,
49
+ Le < BlockSize , U256 > : NonZero ,
50
50
Kind : BufferKind ,
51
51
{
52
52
buffer : Block < BlockSize > ,
56
56
57
57
impl < BlockSize , Kind > BlockBuffer < BlockSize , Kind >
58
58
where
59
- BlockSize : ArrayLength < u8 > + IsLessOrEqual < U255 > ,
60
- LeEq < BlockSize , U255 > : NonZero ,
59
+ BlockSize : ArrayLength < u8 > + IsLess < U256 > ,
60
+ Le < BlockSize , U256 > : NonZero ,
61
61
Kind : BufferKind ,
62
62
{
63
63
/// Create new buffer from slice.
@@ -173,8 +173,8 @@ where
173
173
174
174
impl < BlockSize > BlockBuffer < BlockSize , Eager >
175
175
where
176
- BlockSize : ArrayLength < u8 > + IsLessOrEqual < U255 > ,
177
- LeEq < BlockSize , U255 > : NonZero ,
176
+ BlockSize : ArrayLength < u8 > + IsLess < U256 > ,
177
+ Le < BlockSize , U256 > : NonZero ,
178
178
{
179
179
/// Set `data` to generated blocks.
180
180
#[ inline]
0 commit comments