]> git.proxmox.com Git - proxmox-backup.git/commitdiff
avoid compiler warning
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 25 Mar 2021 11:25:23 +0000 (12:25 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 25 Mar 2021 11:25:23 +0000 (12:25 +0100)
src/tape/drive/virtual_tape.rs

index 0adb67cb204ea968aaff79d3e847b3fb11097b9b..d6b3d0c933c87b46ae38e09dfca599f9ec9201d8 100644 (file)
@@ -333,10 +333,7 @@ impl TapeDriver for VirtualTapeHandle {
     fn backward_space_count_files(&mut self, count: usize) -> Result<(), Error> {
         let mut status = self.load_status()?;
         match status.current_tape {
-            Some(VirtualTapeStatus { ref name, ref mut pos }) => {
-
-                let index = self.load_tape_index(name)
-                    .map_err(|err| io::Error::new(io::ErrorKind::Other, err.to_string()))?;
+            Some(VirtualTapeStatus { ref mut pos, .. }) => {
 
                 if count <= *pos {
                     *pos = *pos - count;