mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-06 04:34:34 +00:00
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:
parent
61cd0ac2ba
commit
fbd82c81d1
@ -1,4 +1,4 @@
|
||||
use anyhow::*;
|
||||
use anyhow::{bail, Error};
|
||||
|
||||
/// Shell quote type
|
||||
pub use rustyline::completion::Quote;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user