]> git.proxmox.com Git - proxmox.git/commitdiff
api-macro: drop Deref of SimpleIdent
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 3 Dec 2019 10:57:01 +0000 (11:57 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 3 Dec 2019 10:57:07 +0000 (11:57 +0100)
The user must always be explicit about whether the Ident or
the String is required, since they may differ.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-api-macro/src/util.rs

index 1e32844cb9a1ab6ecca112c241cf29e430d4d872..088deabaee5c7c2208db45e216c97060aa8152dc 100644 (file)
@@ -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<str> for SimpleIdent {
     #[inline]
     fn borrow(&self) -> &str {