Skip to content

Commit 6d07624

Browse files
committed
Remove vestigial allow(clippy::panic_in_result_fn)
1 parent 8867fb7 commit 6d07624

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

blobby/src/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub const fn parse_into_array<const ITEMS_LEN: usize, const DEDUP_LEN: usize>(
138138
/// # Errors
139139
/// If data failed to parse successfully
140140
#[cfg(feature = "alloc")]
141-
#[allow(clippy::missing_panics_doc, clippy::panic_in_result_fn)]
141+
#[allow(clippy::missing_panics_doc)]
142142
pub fn parse_into_vec(mut data: &[u8]) -> Result<alloc::vec::Vec<&[u8]>, Error> {
143143
use alloc::{vec, vec::Vec};
144144

blobby/tests/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! `blobby` tests
22
#![cfg(feature = "alloc")]
3-
#![allow(clippy::panic_in_result_fn)]
43

54
const ITEMS_LEN: usize = 10;
65
const DEDUP_LEN: usize = 3;

block-padding/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ pub trait Padding: 'static {
6969
/// # Errors
7070
/// If `blocks` contain malformed padding.
7171
#[inline]
72-
#[allow(clippy::panic_in_result_fn)]
7372
fn unpad_blocks<BlockSize: ArraySize>(blocks: &[Array<u8, BlockSize>]) -> Result<&[u8], Error> {
7473
let bs = BlockSize::USIZE;
7574
let (last_block, full_blocks) = blocks.split_last().ok_or(Error)?;
@@ -166,7 +165,6 @@ pub struct Pkcs7;
166165

167166
impl Pkcs7 {
168167
#[inline]
169-
#[allow(clippy::panic_in_result_fn)]
170168
fn unpad(block: &[u8], strict: bool) -> Result<&[u8], Error> {
171169
assert!(block.len() <= 255, "block size is too big for PKCS#7");
172170
let bs = block.len();
@@ -262,7 +260,6 @@ impl Padding for AnsiX923 {
262260
}
263261

264262
#[inline]
265-
#[allow(clippy::panic_in_result_fn)]
266263
fn raw_unpad(block: &[u8]) -> Result<&[u8], Error> {
267264
assert!(block.len() <= 255, "block size is too big for ANSI X9.23");
268265
let bs = block.len();

inout/src/reserved.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl<'inp, 'out> InOutBufReserved<'inp, 'out, u8> {
167167
/// # Errors
168168
/// If the padding is invalid
169169
#[inline(always)]
170-
#[allow(clippy::missing_panics_doc, clippy::panic_in_result_fn)]
170+
#[allow(clippy::missing_panics_doc)]
171171
pub fn into_padded_blocks<P, BS>(self) -> Result<PaddedInOutBuf<'inp, 'out, BS>, PadError>
172172
where
173173
P: Padding,

0 commit comments

Comments
 (0)