avoid compiler warnings

This commit is contained in:
Dietmar Maurer 2018-12-31 10:54:25 +01:00
parent 37ea44a540
commit bf205f94c5
1 changed files with 1 additions and 6 deletions

View File

@ -2,7 +2,6 @@ extern crate proxmox_backup;
use failure::*; use failure::*;
use proxmox_backup::tools;
use proxmox_backup::cli::command::*; use proxmox_backup::cli::command::*;
use proxmox_backup::api::schema::*; use proxmox_backup::api::schema::*;
use proxmox_backup::api::router::*; use proxmox_backup::api::router::*;
@ -10,10 +9,6 @@ use proxmox_backup::api::router::*;
use serde_json::{Value}; use serde_json::{Value};
use std::io::Read; use std::io::Read;
use std::fs::File;
use std::os::unix::ffi::OsStrExt;
use nix::sys::stat::SFlag;
use proxmox_backup::catar::format_definition::*; use proxmox_backup::catar::format_definition::*;
use proxmox_backup::tools::*; use proxmox_backup::tools::*;
@ -32,7 +27,7 @@ fn print_goodby_entries(buffer: &[u8]) -> Result<(), Error> {
let mut pos = 0; let mut pos = 0;
while (pos < buffer.len()) { while pos < buffer.len() {
let item = map_struct::<CaFormatGoodbyeItem>(&buffer[pos..pos+entry_size])?; let item = map_struct::<CaFormatGoodbyeItem>(&buffer[pos..pos+entry_size])?;