replace failure with anyhow
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
cbd70f7799
commit
8150a43970
@ -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"
|
||||
|
@ -1,6 +1,6 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use failure::Error;
|
||||
use anyhow::Error;
|
||||
use nix::errno::Errno;
|
||||
|
||||
use crate::io::seq_packet::SeqPacketSocket;
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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]
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user