fix: address clippy warnings

This commit is contained in:
鲁树人
2025-09-08 20:35:09 +09:00
parent 9ba4eed1ea
commit 2db85a1e9c
12 changed files with 27 additions and 27 deletions

View File

@@ -23,7 +23,7 @@ impl JooxDecipher for Header {
let (buffer, _) = buffer
.split_at_mut_checked(buffer_size)
.ok_or_else(|| JooxError::OutputBufferTooSmall(buffer_size))?;
.ok_or(JooxError::OutputBufferTooSmall(buffer_size))?;
let result = (&self.aes_engine)
.decrypt_padded_mut::<Pkcs7>(buffer)