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 e74fe24 commit 578f393Copy full SHA for 578f393
drv/lpc55-update-server/src/main.rs
@@ -524,10 +524,8 @@ impl idl::InOrderUpdateImpl for ServerImpl<'_> {
524
self.boot_preferences()?;
525
526
// The transient preference must not select the update target.
527
- if let Some(pref) = transient {
528
- if slot == pref {
529
- return Err(UpdateError::InvalidPreferredSlotId.into());
530
- }
+ if transient == Some(pref) {
+ return Err(UpdateError::InvalidPreferredSlotId.into());
531
}
532
// If there is a pending persistent preference, it must
533
// not select the update target.
0 commit comments