Skip to content

Commit

Permalink
fix: Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Jan 7, 2025
1 parent f9dbfd1 commit 8620026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions esp-hal/src/hmac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion esp-hal/src/sha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8620026

Please sign in to comment.