fix clippy

This commit is contained in:
Nikita Sivukhin
2025-07-14 11:38:08 +04:00
parent e94ebbad04
commit b330c6b70e
2 changed files with 3 additions and 3 deletions

View File

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

View File

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