mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-06 17:52:06 +00:00
api-macro: fixup idents in SimpleIdent
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
02acd7269f
commit
7533252072
@ -22,7 +22,7 @@ pub struct SimpleIdent(Ident, String);
|
|||||||
|
|
||||||
impl SimpleIdent {
|
impl SimpleIdent {
|
||||||
pub fn new(name: String, span: Span) -> Self {
|
pub fn new(name: String, span: Span) -> Self {
|
||||||
Self(Ident::new(&name, span), name)
|
Self(Ident::new(&name.replace("-", "_"), span), name)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
Loading…
Reference in New Issue
Block a user