xso: Fix all failing clippy tests

They are all sensible to me.

skip-changelog: Internal changes.
This commit is contained in:
Emmanuel Gil Peyrot 2025-02-12 18:53:29 +01:00 committed by Link Mauve
commit 356ad0d46e
5 changed files with 10 additions and 11 deletions

View file

@ -76,7 +76,7 @@ impl Error {
impl From<&Error> for Error {
fn from(other: &Error) -> Self {
match other {
Self::XmlError(e) => Self::XmlError(e.clone()),
Self::XmlError(e) => Self::XmlError(*e),
Self::TextParseError(e) => Self::TextParseError(Box::new(OpaqueError(e.to_string()))),
Self::Other(e) => Self::Other(e),
Self::TypeMismatch => Self::TypeMismatch,