diff --git a/src/tape/drive/linux_tape.rs b/src/tape/drive/linux_tape.rs index ed088dc2..28527ee5 100644 --- a/src/tape/drive/linux_tape.rs +++ b/src/tape/drive/linux_tape.rs @@ -238,16 +238,16 @@ impl LinuxTapeHandle { status.manufactured = Some(usage.manufactured); status.bytes_read = Some(usage.bytes_read); status.bytes_written = Some(usage.bytes_written); - } - if let Ok(volume_stats) = self.volume_statistics() { + if let Ok(volume_stats) = self.volume_statistics() { - status.medium_passes = Some(std::cmp::max( - volume_stats.beginning_of_medium_passes, - volume_stats.middle_of_tape_passes, - )); + status.medium_passes = Some(std::cmp::max( + volume_stats.beginning_of_medium_passes, + volume_stats.middle_of_tape_passes, + )); - status.volume_mounts = Some(volume_stats.volume_mounts); + status.volume_mounts = Some(volume_stats.volume_mounts); + } } }