refactor: 📦 Fix new clippy errors

This commit is contained in:
Berkus Decker 2022-10-11 23:47:56 +03:00 committed by Berkus Decker
parent 227761c575
commit 0cc683a50f
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ impl<State> Pin<State> {
self.registers.PUDCLK[bank].modify(FieldValue::<u32, ()>::new(
0b1,
off,
if pull == PullUpDown::Up { 1 } else { 0 },
(pull == PullUpDown::Up).into(),
));
loop_delay(2000);

View File

@ -461,7 +461,7 @@ impl<const N_SLOTS: usize, Storage: MailboxStorage + MailboxStorageRef> Mailbox<
buf[index + 1] = 8; // Buffer size // val buf size
buf[index + 2] = 0; // Response size // val size
buf[index + 3] = 130; // Pin Number
buf[index + 4] = if enable { 1 } else { 0 };
buf[index + 4] = enable.into();
index + 5
}