forked from Proxmox/proxmox
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:
parent
16daad64c7
commit
47acc8dc8f
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user