From 423d36a86cd491bfdbcf98e855de4e4130ca072f Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Mon, 7 Oct 2024 08:13:51 -0400 Subject: [PATCH] Address clippy warnings --- doc.md | 2 +- raltool/src/combine.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc.md b/doc.md index 5a0285f5ac56..8f2837890e7b 100644 --- a/doc.md +++ b/doc.md @@ -59,7 +59,7 @@ see [`read_reg`], [`write_reg`], and [`modify_reg`]. Note that the documentation STM32 processor, and may demonstrate a different API for accessing instances. > Note: `imxrt-ral` does not yet support the `reset_reg` macro, and it does not expose reset -structs. +> structs. ## Resource management diff --git a/raltool/src/combine.rs b/raltool/src/combine.rs index 9a44af016f0a..70983a098041 100644 --- a/raltool/src/combine.rs +++ b/raltool/src/combine.rs @@ -548,7 +548,7 @@ pub fn combine(irs: &[ir::IR], config: &Config) -> ir::IR { for item in &mut block.items { match &mut item.inner { ir::BlockItemInner::Register(reg) => { - for fieldset in &mut reg.fieldset { + if let Some(fieldset) = &mut reg.fieldset { let version = versions.get_fieldset(ir, fieldset).unwrap(); *fieldset = fieldsets.get(&RefHash(version.element())).unwrap().into()