message: Collapse `if` statement
  Fixes clippy::collapsible_if
diff: @@ -1080,13 +1080,11 @@ fn read_caps(adapter: &PciAdapter, bars: Vec<PciBar>) -> Result<Vec<PciCap>, Pci
  Some(bar) => {
  // Drivers MUST ignore BAR values different then specified in Virtio spec v1.1. - 4.1.4
  // See Virtio specification v1.1. - 4.1.4.1
  - if bar.index <= 5 {
  - if bar.index == cap_raw.bar_index {
  + if bar.index <= 5 && bar.index == cap_raw.bar_index {
  // Need to clone here as every PciCap carrys it's bar
  break bar.clone();
  }
  }
  - }
  None => {
  error!("Found virtio capability whose BAR is not mapped or non existing. Capability of type {:x} and id {:x} for device {:x}, can not be used!",
  cap_raw.cfg_type, cap_raw.id, adapter.device_id);
  