improvements

This commit is contained in:
nora 2022-02-19 18:38:50 +01:00
parent 13deef42fd
commit c5d83fe776
7 changed files with 15 additions and 15 deletions

View file

@ -32,7 +32,6 @@ struct Domain {
asserts: Vec<Assert>,
#[xml(child = "doc")]
doc: Vec<Doc>,
}
#[derive(Debug, XmlRead)]
@ -72,7 +71,6 @@ struct Method {
index: u16,
#[xml(child = "doc")]
doc: Vec<Doc>,
}
#[derive(Debug, XmlRead)]
@ -88,7 +86,6 @@ struct Field {
asserts: Vec<Assert>,
#[xml(child = "doc")]
doc: Vec<Doc>,
}
#[derive(Debug, XmlRead)]
@ -100,7 +97,6 @@ struct Doc {
kind: Option<String>,
}
fn main() {
let content = fs::read_to_string("./amqp0-9-1.xml").unwrap();
@ -115,6 +111,7 @@ fn main() {
}
fn codegen(amqp: &Amqp) {
println!("#![allow(dead_code)]");
println!("// This file has been generated by `amqp_codegen`. Do not edit it manually.\n");
codegen_domain_defs(amqp);
codegen_class_defs(amqp);