From 310c9b43ffe767dec16531c7839861b28f709ee9 Mon Sep 17 00:00:00 2001 From: Asuna Date: Fri, 14 Feb 2025 03:57:03 +0800 Subject: [PATCH] Derive `Clone` for `kv::Value` --- src/kv/value.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kv/value.rs b/src/kv/value.rs index ef9429832..b4851af2a 100644 --- a/src/kv/value.rs +++ b/src/kv/value.rs @@ -115,6 +115,7 @@ impl<'v> ToValue for Value<'v> { /// `Display` implementation, it will serialize through `serde` as a string. If it was /// captured as a struct using `serde`, it will also serialize as a struct /// through `sval`, or can be formatted using a `Debug`-compatible representation. +#[derive(Clone)] pub struct Value<'v> { inner: inner::Inner<'v>, }