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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-12-13 08:13:05 +01:00
parent 61cd0ac2ba
commit fbd82c81d1
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
use anyhow::*; use anyhow::{bail, Error};
/// Shell quote type /// Shell quote type
pub use rustyline::completion::Quote; pub use rustyline::completion::Quote;

View File

@ -19,7 +19,7 @@ use crate::RpcEnvironment;
/// ///
/// Most API handler are synchronous. Use this to define such handler: /// Most API handler are synchronous. Use this to define such handler:
/// ``` /// ```
/// # use anyhow::*; /// # use anyhow::Error;
/// # use serde_json::{json, Value}; /// # use serde_json::{json, Value};
/// use proxmox_router::{ApiHandler, ApiMethod, RpcEnvironment}; /// use proxmox_router::{ApiHandler, ApiMethod, RpcEnvironment};
/// use proxmox_schema::ObjectSchema; /// use proxmox_schema::ObjectSchema;