Skip to content

Commit

Permalink
partial clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mkatychev authored and pchampin committed Oct 15, 2024
1 parent d9a9dbe commit 1b65bb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions rio/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ impl<'a> Term for Trusted<Literal<'a>> {
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()
}
Expand Down
3 changes: 1 addition & 2 deletions term/src/_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ impl<T: Borrow<str>> GenericLiteral<T> {
/// 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()
}
Expand Down
2 changes: 1 addition & 1 deletion xml/src/serializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 1b65bb5

Please sign in to comment.