From eae28015aa8af1811222e10801115f23266f59c7 Mon Sep 17 00:00:00 2001 From: Eduardo Pinho Date: Sat, 13 Jul 2024 14:42:28 +0100 Subject: [PATCH] [core] Tweak Value::shallow_clone - elide lifetime - fix formatting of doc comments --- core/src/value/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/value/mod.rs b/core/src/value/mod.rs index dc8db031e..88888a978 100644 --- a/core/src/value/mod.rs +++ b/core/src/value/mod.rs @@ -188,12 +188,12 @@ impl Value { /// Produce a shallow clone of the value, /// leaving the items and pixel data fragments as references. - /// + /// /// If the value is primitive, /// the entire value will be copied. /// Otherwise, the item or fragment sequences /// will hold references to the original data. - pub fn shallow_clone<'a>(&'a self) -> Value<&'a I, &'a P> { + pub fn shallow_clone(&self) -> Value<&I, &P> { match self { Value::Primitive(v) => Value::Primitive(v.clone()), Value::Sequence(v) => Value::Sequence(DataSetSequence {