clippy: Change degenerate match into if let
@@ -131,8 +131,7 @@ impl Manifestation {
Ok(_) => {}
Err(e) => {
if force_update {
- match e.kind() {
- ErrorKind::RequestedComponentsUnavailable(components, _, _) => {
+ if let ErrorKind::RequestedComponentsUnavailable(components, _, _) = e.kind() {
for component in components {
notify_handler(Notification::ForcingUnavailableComponent(
component.name(new_manifest).as_str(),
@@ -140,8 +139,6 @@ impl Manifestation {
}
update.drop_components_to_install(&components);
}
- _ => {}
- }
} else {
return Err(e);
}
