xso: remove remnants of IntoXml

This commit is contained in:
Jonas Schäfer 2024-07-09 17:03:46 +02:00
commit 7bc7e7a684
3 changed files with 13 additions and 157 deletions

View file

@ -11,7 +11,7 @@ use core::marker::PhantomData;
use std::borrow::Cow;
use crate::{error::Error, AsXmlText, FromXmlText, IntoXmlText};
use crate::{error::Error, AsXmlText, FromXmlText};
#[cfg(feature = "base64")]
use base64::engine::{general_purpose::STANDARD as StandardBase64Engine, Engine as _};
@ -33,16 +33,6 @@ macro_rules! convert_via_fromstr_and_display {
}
}
$(
#[cfg(feature = $feature)]
#[cfg_attr(docsrs, doc(cfg(feature = $feature)))]
)?
impl IntoXmlText for $t {
fn into_xml_text(self) -> Result<String, Error> {
Ok(self.to_string())
}
}
$(
#[cfg(feature = $feature)]
#[cfg_attr(docsrs, doc(cfg(feature = $feature)))]
@ -69,13 +59,6 @@ impl FromXmlText for bool {
}
}
/// This provides an implementation compliant with xsd::bool.
impl IntoXmlText for bool {
fn into_xml_text(self) -> Result<String, Error> {
Ok(self.to_string())
}
}
/// This provides an implementation compliant with xsd::bool.
impl AsXmlText for bool {
fn as_xml_text(&self) -> Result<Cow<'_, str>, Error> {