- fix some discrepancies with the xsd

This commit is contained in:
w.pomp committed 2026-10-01 18:59:31 +02:00
1 parent 4dba00a004
commit 81bd302967
6 files changed
+317 -39

No files matched your search

+2 -2
View File
@@ -10,11 +10,11 @@ pub fn ome_metadata_derive_xml(input: TokenStream) -> TokenStream {
let expanded = quote! {
impl #ident {
pub fn from_xml<T: AsRef<str>>(s: T) -> Result<Self, Error> {
Ok(from_str(s.as_ref())?)
from_str(s.as_ref())
}
pub fn to_xml(&self) -> Result<String, Error> {
Ok(to_string(self)?)
to_string(self)
}
}
};