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:
parent
7533252072
commit
b7ecf3a597
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user