diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs index ab1ca9995..9079d23a0 100644 --- a/core/vdbe/execute.rs +++ b/core/vdbe/execute.rs @@ -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); diff --git a/core/vdbe/mod.rs b/core/vdbe/mod.rs index 776cbb9f8..56a90dcef 100644 --- a/core/vdbe/mod.rs +++ b/core/vdbe/mod.rs @@ -598,7 +598,7 @@ pub fn registers_to_ref_values(registers: &[Register]) -> Vec { 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())), }