]> git.proxmox.com Git - proxmox-backup.git/commitdiff
remove unused code
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 29 Nov 2023 09:20:24 +0000 (10:20 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 29 Nov 2023 12:02:26 +0000 (13:02 +0100)
this was moved to proxmox_router long ago

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/tools/mod.rs

index 27278e641ce8231ee6b9b9454d7792aeef244219..b6cc5448f18d1999c1d58c5bc38338e774c32f68 100644 (file)
@@ -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<T: Any> 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";