diff --git a/src/tools/mod.rs b/src/tools/mod.rs index 27278e64..b6cc5448 100644 --- a/src/tools/mod.rs +++ b/src/tools/mod.rs @@ -1,7 +1,6 @@ //! Tools and utilities //! //! This is a collection of small and useful tools. -use std::any::Any; use anyhow::{bail, Error}; @@ -41,19 +40,6 @@ pub fn detect_modified_configuration_file( Ok(()) } -/// An easy way to convert types to Any -/// -/// Mostly useful to downcast trait objects (see RpcEnvironment). -pub trait AsAny { - fn as_any(&self) -> &dyn Any; -} - -impl AsAny for T { - fn as_any(&self) -> &dyn Any { - self - } -} - /// The default 2 hours are far too long for PBS pub const PROXMOX_BACKUP_TCP_KEEPALIVE_TIME: u32 = 120; pub const DEFAULT_USER_AGENT_STRING: &str = "proxmox-backup-client/1.0";