From 67623efa2f1888fa34637b54409138bf930737f9 Mon Sep 17 00:00:00 2001 From: Tpt Date: Thu, 6 Sep 2018 16:11:25 +0200 Subject: [PATCH] Avoids a not useful lifetime annotation --- src/model/literal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/literal.rs b/src/model/literal.rs index dfa921ae..e775590c 100644 --- a/src/model/literal.rs +++ b/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 { match self { Literal::SimpleLiteral(value) => Cow::Borrowed(value), Literal::String(value) => Cow::Borrowed(value),