fix: Clippy lints
This commit is contained in:
parent
09ec6f7ea4
commit
5261130379
@ -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();
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user