replace failure with anyhow

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-04-17 11:15:18 +02:00
parent cbd70f7799
commit 8150a43970
10 changed files with 10 additions and 10 deletions

View File

@ -13,7 +13,7 @@ exclude = [ "build", "debian" ]
[dependencies]
bitflags = "1.2"
failure = { version = "0.1", default-features = false, features = [ "std" ] }
anyhow = "1.0"
lazy_static = "1.4"
libc = "0.2"
nix = "0.16"

View File

@ -1,6 +1,6 @@
use std::sync::Arc;
use failure::Error;
use anyhow::Error;
use nix::errno::Errno;
use crate::io::seq_packet::SeqPacketSocket;

View File

@ -2,7 +2,7 @@ use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
use std::task::{Context, Poll};
use std::{io, ptr};
use failure::Error;
use anyhow::Error;
use nix::sys::socket::{self, AddressFamily, SockAddr, SockFlag, SockType};
use crate::io::iovec::{IoVec, IoVecMut};

View File

@ -7,7 +7,7 @@ use std::os::unix::fs::FileExt;
use std::os::unix::io::{FromRawFd, RawFd};
use std::{io, mem};
use failure::{bail, format_err, Error};
use anyhow::{bail, format_err, Error};
use lazy_static::lazy_static;
use libc::pid_t;
use nix::errno::Errno;

View File

@ -4,7 +4,7 @@ use std::io as StdIo;
use std::io::{stderr, stdout, Write};
use std::os::unix::ffi::OsStrExt;
use failure::{bail, format_err, Error};
use anyhow::{bail, format_err, Error};
use nix::sys::socket::SockAddr;
#[macro_use]

View File

@ -6,7 +6,7 @@ use std::os::raw::c_int;
use std::os::unix::ffi::OsStringExt;
use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
use failure::{bail, Error};
use anyhow::{bail, Error};
use libc::pid_t;
use crate::capability::Capabilities;

View File

@ -4,7 +4,7 @@ use std::ffi::{OsStr, OsString};
use std::io;
use std::os::unix::ffi::OsStrExt;
use failure::Error;
use anyhow::Error;
use super::PidFd;
use crate::capability::Capabilities;

View File

@ -1,7 +1,7 @@
use std::ffi::CString;
use std::os::unix::io::AsRawFd;
use failure::Error;
use anyhow::Error;
use nix::errno::Errno;
use nix::sys::stat;

View File

@ -3,7 +3,7 @@ use std::ffi::CString;
use std::os::raw::{c_int, c_uint};
use std::{io, mem, ptr};
use failure::Error;
use anyhow::Error;
use nix::errno::Errno;
use crate::fork::forking_syscall;

View File

@ -1,7 +1,7 @@
use std::ffi::CString;
use std::os::raw::c_int;
use failure::Error;
use anyhow::Error;
use nix::errno::Errno;
use crate::lxcseccomp::ProxyMessageBuffer;