From fbd82c81d1db525ed56dd82e15e4908638d11372 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 13 Dec 2021 08:13:05 +0100 Subject: [PATCH] proxmox-router: fix glob-import of anyhow will break usage of the `Result::Ok()' with anyhow 1.0.49+ as that added a new Ok helper, so a glob-import would make that shadow the core one. Signed-off-by: Thomas Lamprecht --- proxmox-router/src/cli/shellword.rs | 2 +- proxmox-router/src/router.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-router/src/cli/shellword.rs b/proxmox-router/src/cli/shellword.rs index 4adf51d2..68402bff 100644 --- a/proxmox-router/src/cli/shellword.rs +++ b/proxmox-router/src/cli/shellword.rs @@ -1,4 +1,4 @@ -use anyhow::*; +use anyhow::{bail, Error}; /// Shell quote type pub use rustyline::completion::Quote; diff --git a/proxmox-router/src/router.rs b/proxmox-router/src/router.rs index 19d23890..a469891c 100644 --- a/proxmox-router/src/router.rs +++ b/proxmox-router/src/router.rs @@ -19,7 +19,7 @@ use crate::RpcEnvironment; /// /// Most API handler are synchronous. Use this to define such handler: /// ``` -/// # use anyhow::*; +/// # use anyhow::Error; /// # use serde_json::{json, Value}; /// use proxmox_router::{ApiHandler, ApiMethod, RpcEnvironment}; /// use proxmox_schema::ObjectSchema;