- fix some discrepancies with the xsd
This commit is contained in:
1 parent
4dba00a004
commit
81bd302967
6 files changed
+317
-39
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user