diff --git a/rio/src/model.rs b/rio/src/model.rs index 8554182..64439fd 100644 --- a/rio/src/model.rs +++ b/rio/src/model.rs @@ -109,9 +109,7 @@ impl<'a> Term for Trusted> { fn lexical_form(l: Literal) -> MownStr { use Literal::{LanguageTaggedString, Simple, Typed}; let value = match l { - Simple { value } => value, - LanguageTaggedString { value, .. } => value, - Typed { value, .. } => value, + LanguageTaggedString { value, .. } | Typed { value, .. } | Simple { value } => value, }; value.into() } diff --git a/term/src/_generic.rs b/term/src/_generic.rs index 903424e..21d0ccc 100644 --- a/term/src/_generic.rs +++ b/term/src/_generic.rs @@ -24,8 +24,7 @@ impl> GenericLiteral { /// The [lexical form](https://www.w3.org/TR/rdf11-concepts/#dfn-lexical-form) of this literal pub fn get_lexical_form(&self) -> &str { match self { - Self::Typed(lex, ..) => lex, - Self::LanguageString(lex, ..) => lex, + Self::LanguageString(lex, ..) | Self::Typed(lex, ..) => lex, } .borrow() } diff --git a/xml/src/serializer.rs b/xml/src/serializer.rs index 84bca08..ac7a433 100644 --- a/xml/src/serializer.rs +++ b/xml/src/serializer.rs @@ -33,7 +33,7 @@ impl RdfXmlConfig { /// Build a new default [`RdfXmlConfig`] #[must_use] pub fn new() -> Self { - Default::default() + Self::default() } /// Transform an [`RdfXmlConfig`] by setting the [`indentation`](RdfXmlConfig::indentation).