fix: Clippy lints

This commit is contained in:
Sergio Gasquez 2025-01-07 12:50:42 +01:00
parent 09ec6f7ea4
commit 5261130379
2 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ impl<'d> Hmac<'d> {
/// Process the msg block after block
pub fn update<'a>(&mut self, msg: &'a [u8]) -> &'a [u8] {
while (&mut *self).is_busy() {}
while (*self).is_busy() {}
self.next_command();
@ -162,7 +162,7 @@ impl<'d> Hmac<'d> {
/// Finalizes the HMAC computation and retrieves the resulting hash output.
pub fn finalize(&mut self, output: &mut [u8]) {
while (&mut *self).is_busy() {}
while (*self).is_busy() {}
self.next_command();

View File

@ -373,7 +373,7 @@ impl<'d, A: ShaAlgorithm, S: BorrowMut<Sha<'d>>> ShaDigest<'d, A, S> {
fn write_data<'a>(&mut self, incoming: &'a [u8]) -> &'a [u8] {
if self.message_buffer_is_full {
while (&*&*&*self).is_busy() {
while (*self).is_busy() {
// The message buffer is full and the hardware is still
// processing the previous message. There's
// nothing to be done besides wait for the hardware.