mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-07 17:24:24 +01:00
fix clippy
This commit is contained in:
@@ -1597,7 +1597,7 @@ pub fn op_column(
|
||||
if existing_text.value.capacity() >= new_text.value.len() {
|
||||
existing_text.value.clear();
|
||||
existing_text.value.extend_from_slice(&new_text.value);
|
||||
existing_text.subtype = new_text.subtype.clone();
|
||||
existing_text.subtype = new_text.subtype;
|
||||
} else {
|
||||
state.registers[*dest] = Register::Value(value);
|
||||
}
|
||||
@@ -4130,7 +4130,7 @@ pub fn op_function(
|
||||
let columns_len = columns_json_array.array_len()?;
|
||||
|
||||
let mut record = ImmutableRecord::new(bin_record.len());
|
||||
record.start_serialization(&bin_record);
|
||||
record.start_serialization(bin_record);
|
||||
let mut record_cursor = RecordCursor::new();
|
||||
|
||||
let mut json = json::jsonb::Jsonb::make_empty_obj(columns_len);
|
||||
|
||||
@@ -598,7 +598,7 @@ pub fn registers_to_ref_values(registers: &[Register]) -> Vec<RefValue> {
|
||||
Value::Float(f) => RefValue::Float(*f),
|
||||
Value::Text(t) => RefValue::Text(TextRef {
|
||||
value: RawSlice::new(t.value.as_ptr(), t.value.len()),
|
||||
subtype: t.subtype.clone(),
|
||||
subtype: t.subtype,
|
||||
}),
|
||||
Value::Blob(b) => RefValue::Blob(RawSlice::new(b.as_ptr(), b.len())),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user