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 <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-12-03 11:57:01 +01:00
parent 7533252072
commit b7ecf3a597

View 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 {