]> git.proxmox.com Git - proxmox.git/commitdiff
cleanup: avoid use anyhow::*
authorDietmar Maurer <dietmar@proxmox.com>
Sun, 28 Nov 2021 11:50:21 +0000 (12:50 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Sun, 28 Nov 2021 11:50:59 +0000 (12:50 +0100)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
proxmox-router/src/cli/command.rs
proxmox-sys/src/linux/procfs/mod.rs
proxmox-sys/src/linux/tty.rs

index 906ec0c36c642002d4ac44be52af3a85a6aeb24d..c66797a83a549f70e08865f3a54475b9c19cc151 100644 (file)
@@ -1,4 +1,4 @@
-use anyhow::*;
+use anyhow::{format_err, Error};
 use serde_json::Value;
 use std::cell::RefCell;
 use std::sync::Arc;
index 487f8dc260004e77718d1963dfb17e48abd49ac8..30b9978b0d60d09c0ea4d4df0bb9e0e8c3ecdd73 100644 (file)
@@ -8,7 +8,7 @@ use std::str::FromStr;
 use std::sync::RwLock;
 use std::time::Instant;
 
-use anyhow::*;
+use anyhow::{bail, format_err, Error};
 use lazy_static::lazy_static;
 use nix::unistd::Pid;
 
index ab3e793b71d4e01b06aeda8e4753a371724eb54b..b7b32ced12136b1cdbdee3ffbe4e13c90ca0c6df 100644 (file)
@@ -2,7 +2,7 @@ use std::io::{self, Read, Write};
 use std::mem::MaybeUninit;
 use std::os::unix::io::AsRawFd;
 
-use anyhow::*;
+use anyhow::{bail, format_err, Error};
 use nix::fcntl::OFlag;
 use nix::sys::stat::Mode;