There was an error while loading. Please reload this page.
1 parent 54e21da commit a6202aeCopy full SHA for a6202ae
1 file changed
cryptovec/src/cryptovec.rs
@@ -157,15 +157,15 @@ const MAX_CAPACITY: usize = 1usize << (usize::BITS - 2);
157
158
#[cold]
159
#[inline(never)]
160
+#[allow(clippy::panic)]
161
fn capacity_overflow(len: usize) -> ! {
- #[allow(clippy::panic)]
162
panic!("CryptoVec capacity overflow: {len}")
163
}
164
165
166
167
168
fn length_overflow(lhs: usize, rhs: usize) -> ! {
169
panic!("CryptoVec length overflow: {lhs} + {rhs}")
170
171
0 commit comments