Skip to content

Commit

Permalink
Merge pull request #903 from bgurney-rh/rust-1.76
Browse files Browse the repository at this point in the history
device_remove: allow blocks in conditions
  • Loading branch information
mulkieran authored Feb 8, 2024
2 parents a6e6616 + 9a6566d commit d39add3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/dm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ impl DM {
/// Valid flags: `DM_DEFERRED_REMOVE`
pub fn device_remove(&self, id: &DevId<'_>, options: DmOptions) -> DmResult<DeviceInfo> {
debug!("Removing device {}", id);
#[allow(renamed_and_removed_lints)]
#[allow(clippy::blocks_in_if_conditions)]
match retry_with_index(
Fixed::from_millis(DM_REMOVE_MSLEEP_DELAY).take(DM_REMOVE_RETRIES - 1),
|i| {
Expand Down

0 comments on commit d39add3

Please sign in to comment.