From f3e8c5cf5df4ff3dd10f645cc5aa0e293cd38c57 Mon Sep 17 00:00:00 2001 From: Jen Tak Date: Thu, 14 Dec 2023 15:19:44 +0100 Subject: [PATCH] Fix preexisting clippy warnings --- src/bootload.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bootload.rs b/src/bootload.rs index defc627..f10701f 100644 --- a/src/bootload.rs +++ b/src/bootload.rs @@ -28,9 +28,9 @@ pub fn jump_to_bootloader_if_requested(dp: &stm32::Peripherals) { let magic_num: u32 = read_backup_register(dp); if magic_num == MAGIC_BOOTLOADER_NUMBER { - enable_backup_domain(&dp); + enable_backup_domain(dp); write_to_backup_register(0, dp); - disable_backup_domain(&dp); + disable_backup_domain(dp); unsafe { cortex_m::asm::bootload(BOOTLOADER_FIRMWARE_MEMORY_LOCATION as *const u32);