From b7ecf3a597b143495c427313363947a2cdd0fb84 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 3 Dec 2019 11:57:01 +0100 Subject: [PATCH] api-macro: drop Deref of SimpleIdent The user must always be explicit about whether the Ident or the String is required, since they may differ. Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/util.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/proxmox-api-macro/src/util.rs b/proxmox-api-macro/src/util.rs index 1e32844c..088deaba 100644 --- a/proxmox-api-macro/src/util.rs +++ b/proxmox-api-macro/src/util.rs @@ -76,22 +76,6 @@ impl fmt::Display for SimpleIdent { } } -impl std::ops::Deref for SimpleIdent { - type Target = Ident; - - #[inline] - fn deref(&self) -> &Self::Target { - &self.0 - } -} - -impl std::ops::DerefMut for SimpleIdent { - #[inline] - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} - impl Borrow for SimpleIdent { #[inline] fn borrow(&self) -> &str {