mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 00:45:37 +01:00
remove clone
This commit is contained in:
@@ -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()),
|
||||
}
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user