From cc04f11bd670d81be1e804b95f18a88f580ed3a6 Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Fri, 11 Jul 2025 15:37:46 -0700 Subject: [PATCH] remove clone --- core/types.rs | 4 ++-- core/vdbe/execute.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/types.rs b/core/types.rs index 68d00f494..43494894f 100644 --- a/core/types.rs +++ b/core/types.rs @@ -963,7 +963,7 @@ impl ImmutableRecord { let ptr = unsafe { writer.buf.as_ptr().add(start_offset) }; let value = RefValue::Text(TextRef { value: RawSlice::new(ptr, len), - subtype: t.subtype.clone(), + subtype: t.subtype, }); ref_values.push(value); } @@ -1365,7 +1365,7 @@ impl RefValue { RefValue::Float(f) => Value::Float(*f), RefValue::Text(text_ref) => Value::Text(Text { value: text_ref.value.to_slice().to_vec(), - subtype: text_ref.subtype.clone(), + subtype: text_ref.subtype, }), RefValue::Blob(b) => Value::Blob(b.to_slice().to_vec()), } diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs index a7ac46f94..ab1ca9995 100644 --- a/core/vdbe/execute.rs +++ b/core/vdbe/execute.rs @@ -28,9 +28,9 @@ use crate::{ }, }; use std::ops::DerefMut; +use std::sync::atomic::AtomicUsize; use std::sync::Mutex; use std::{borrow::BorrowMut, rc::Rc, sync::Arc}; -use std::{ sync::atomic::AtomicUsize}; use crate::{pseudo::PseudoCursor, result::LimboResult};