Avoids a not useful lifetime annotation

pull/10/head
Tpt 6 years ago
parent 383026abac
commit 67623efa2f
  1. 2
      src/model/literal.rs

@ -51,7 +51,7 @@ impl Literal {
}
/// The literal [lexical form](https://www.w3.org/TR/rdf11-concepts/#dfn-lexical-form)
pub fn value<'a>(&'a self) -> Cow<'a, String> {
pub fn value(&self) -> Cow<String> {
match self {
Literal::SimpleLiteral(value) => Cow::Borrowed(value),
Literal::String(value) => Cow::Borrowed(value),

Loading…
Cancel
Save