xso: Apply clippy’s suggestions

This commit is contained in:
Emmanuel Gil Peyrot 2024-07-24 21:24:15 +02:00 committed by pep
commit 6e1f24c385
2 changed files with 8 additions and 11 deletions

View file

@ -231,7 +231,7 @@ impl AsXmlText for &str {
impl<T: AsXmlText> AsXmlText for Box<T> {
fn as_xml_text(&self) -> Result<Cow<'_, str>, self::error::Error> {
T::as_xml_text(&*self)
T::as_xml_text(self)
}
}