remove clone

This commit is contained in:
Nikita Sivukhin
2025-07-11 15:37:46 -07:00
parent f61d733dd3
commit cc04f11bd6
2 changed files with 3 additions and 3 deletions

View File

@@ -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()),
}

View File

@@ -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};