From 811064bb050f09d88c2cdbb883649e651ad1f4d5 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 9 Feb 2022 08:49:22 +0000 Subject: [PATCH] No need to clone data when setting --- src/sql/value/set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/value/set.rs b/src/sql/value/set.rs index c1e6fadb..f4323706 100644 --- a/src/sql/value/set.rs +++ b/src/sql/value/set.rs @@ -81,7 +81,7 @@ impl Value { }, // No more parts so set the value None => { - *self = val.clone(); + *self = val; Ok(()) } }