switch from failure to anyhow

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2020-04-17 14:11:25 +02:00
parent 404d78c41e
commit f7d4e4b506
116 changed files with 129 additions and 129 deletions

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{Error};
// chacha20-poly1305

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{Error};
use proxmox::api::{*, cli::*};

View File

@ -1,6 +1,6 @@
use std::io::Write;
use failure::*;
use anyhow::{Error};
use chrono::{DateTime, Utc};

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{Error};
use proxmox::api::format::*;

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{Error};
use proxmox::api::format::*;
use proxmox::api::cli::*;

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{Error};
use proxmox::api::format::dump_api;

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{bail, Error};
use std::thread;
use std::path::PathBuf;

View File

@ -2,7 +2,7 @@ use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll};
use failure::*;
use anyhow::{Error};
use futures::future::TryFutureExt;
use futures::stream::Stream;
use tokio::net::TcpStream;

View File

@ -2,7 +2,7 @@ use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll};
use failure::*;
use anyhow::{format_err, Error};
use futures::future::TryFutureExt;
use futures::stream::Stream;

View File

@ -1,6 +1,6 @@
use std::sync::Arc;
use failure::*;
use anyhow::{format_err, Error};
use futures::*;
use hyper::{Request, Response, Body};
use openssl::ssl::{SslMethod, SslAcceptor, SslFiletype};

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{Error};
use futures::*;
// Simple H2 server to test H2 speed with h2client.rs

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{bail, Error};
use futures::*;
use proxmox::try_block;

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{bail, format_err, Error};
use nix::unistd::{fork, ForkResult, pipe};
use std::os::unix::io::RawFd;
use chrono::{Local, DateTime, Utc, TimeZone};

View File

@ -1,7 +1,7 @@
use std::path::PathBuf;
use std::collections::HashMap;
use failure::*;
use anyhow::{bail, format_err, Error};
use serde_json::{json, Value};
use proxmox::api::{api, cli::*, RpcEnvironment, ApiHandler};

View File

@ -1,6 +1,6 @@
use std::sync::Arc;
use failure::*;
use anyhow::{bail, format_err, Error};
use futures::*;
use hyper;
use openssl::ssl::{SslMethod, SslAcceptor, SslFiletype};

View File

@ -1,6 +1,6 @@
extern crate proxmox_backup;
use failure::*;
use anyhow::{format_err, Error};
use proxmox::{sortable, identity};
use proxmox::api::{ApiHandler, ApiMethod, RpcEnvironment};

View File

@ -2,7 +2,7 @@ extern crate proxmox_backup;
// also see https://www.johndcook.com/blog/standard_deviation/
use failure::*;
use anyhow::{Error};
use std::io::{Read, Write};
use proxmox_backup::backup::*;

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{Error};
use futures::*;
extern crate proxmox_backup;

View File

@ -1,4 +1,4 @@
use failure::*;
use anyhow::{Error};
use proxmox_backup::client::*;