Skip to content

Commit a6202ae

Browse files
committed
lint
1 parent 54e21da commit a6202ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cryptovec/src/cryptovec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,15 @@ const MAX_CAPACITY: usize = 1usize << (usize::BITS - 2);
157157

158158
#[cold]
159159
#[inline(never)]
160+
#[allow(clippy::panic)]
160161
fn capacity_overflow(len: usize) -> ! {
161-
#[allow(clippy::panic)]
162162
panic!("CryptoVec capacity overflow: {len}")
163163
}
164164

165165
#[cold]
166166
#[inline(never)]
167+
#[allow(clippy::panic)]
167168
fn length_overflow(lhs: usize, rhs: usize) -> ! {
168-
#[allow(clippy::panic)]
169169
panic!("CryptoVec length overflow: {lhs} + {rhs}")
170170
}
171171

0 commit comments

Comments
 (0)