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 <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-04-21 14:04:49 +02:00
parent 16daad64c7
commit 47acc8dc8f

View File

@ -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)
}
}