mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-06 15:02:46 +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 {
|
||||
pub fn new(name: String, span: Span) -> Self {
|
||||
Self(Ident::new(&name, span), name)
|
||||
Self(Ident::new(&name.replace("-", "_"), span), name)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
Loading…
Reference in New Issue
Block a user