From 47acc8dc8f68ed2c5db69b1678b479e05b0a3194 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 21 Apr 2022 14:04:49 +0200 Subject: [PATCH] router: drop Index impls for references these should not be required as the use cases should all be covered by the non-reference impls Signed-off-by: Wolfgang Bumiller --- proxmox-router/src/rpc_environment.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/proxmox-router/src/rpc_environment.rs b/proxmox-router/src/rpc_environment.rs index 68786700..7a70b8e7 100644 --- a/proxmox-router/src/rpc_environment.rs +++ b/proxmox-router/src/rpc_environment.rs @@ -69,24 +69,3 @@ impl core::ops::IndexMut<&str> for dyn RpcEnvironment { self.result_attrib_mut().index_mut(index) } } - -// deprecated Index variants: -impl core::ops::Index<&str> for &dyn RpcEnvironment { - type Output = Value; - fn index(&self, index: &str) -> &Value { - self.result_attrib().index(index) - } -} - -impl core::ops::Index<&str> for &mut dyn RpcEnvironment { - type Output = Value; - fn index(&self, index: &str) -> &Value { - self.result_attrib().index(index) - } -} - -impl core::ops::IndexMut<&str> for &mut dyn RpcEnvironment { - fn index_mut(&mut self, index: &str) -> &mut Value { - self.result_attrib_mut().index_mut(index) - } -}