1
0
Fork 0
forked from wry/wry

xml-to-wire: fix handling of new_id without interface

This commit is contained in:
Julian Orth 2026-02-28 14:40:45 +01:00
parent 66efc946b6
commit 01fc2f128d
2 changed files with 5 additions and 1 deletions

View file

@ -90,6 +90,10 @@ fn handle_file_(path: &str) -> Result<(), BuilderError> {
args.next();
continue;
}
if arg.ty == ArgType::NewId && arg.interface.is_none() {
writeln!(file, " interface: str,")?;
writeln!(file, " version: u32,")?;
}
write!(file, " {}: ", arg.name)?;
'ty: {
let ty = match arg.ty {