avoid compiler warning
This commit is contained in:
parent
e244b9d03d
commit
2843ba9017
@ -333,10 +333,7 @@ impl TapeDriver for VirtualTapeHandle {
|
|||||||
fn backward_space_count_files(&mut self, count: usize) -> Result<(), Error> {
|
fn backward_space_count_files(&mut self, count: usize) -> Result<(), Error> {
|
||||||
let mut status = self.load_status()?;
|
let mut status = self.load_status()?;
|
||||||
match status.current_tape {
|
match status.current_tape {
|
||||||
Some(VirtualTapeStatus { ref name, ref mut pos }) => {
|
Some(VirtualTapeStatus { ref mut pos, .. }) => {
|
||||||
|
|
||||||
let index = self.load_tape_index(name)
|
|
||||||
.map_err(|err| io::Error::new(io::ErrorKind::Other, err.to_string()))?;
|
|
||||||
|
|
||||||
if count <= *pos {
|
if count <= *pos {
|
||||||
*pos = *pos - count;
|
*pos = *pos - count;
|
||||||
|
Loading…
Reference in New Issue
Block a user