We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 578f393 commit 43ec488Copy full SHA for 43ec488
drv/lpc55-update-server/src/main.rs
@@ -529,10 +529,8 @@ impl idl::InOrderUpdateImpl for ServerImpl<'_> {
529
}
530
// If there is a pending persistent preference, it must
531
// not select the update target.
532
- if let Some(pref) = pending_persistent {
533
- if slot == pref {
534
- return Err(UpdateError::InvalidPreferredSlotId.into());
535
- }
+ if pending_persistent == Some(slot) {
+ return Err(UpdateError::InvalidPreferredSlotId.into());
536
} else if slot == persistent {
537
// If there is no pending persistent preference, then the
538
// persistent preference must select the currently active image.
0 commit comments