xso-proc: add debug mode for development purposes
This commit is contained in:
parent
32e8f2ec2e
commit
92e69cf59f
3 changed files with 27 additions and 0 deletions
|
|
@ -90,6 +90,10 @@ fn from_xml_impl(input: Item) -> Result<TokenStream> {
|
|||
}
|
||||
});
|
||||
|
||||
if def.debug() {
|
||||
println!("{}", result);
|
||||
}
|
||||
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
|
|
@ -151,6 +155,10 @@ fn into_xml_impl(input: Item) -> Result<TokenStream> {
|
|||
}
|
||||
});
|
||||
|
||||
if def.debug() {
|
||||
println!("{}", result);
|
||||
}
|
||||
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue