Skip to content

Commit

Permalink
Address clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mciantyre committed Dec 3, 2024
1 parent 2d51c2b commit 423d36a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

0 comments on commit 423d36a

Please sign in to comment.