From aa1caede125bca12911e43c810a45ae261b8ed5f Mon Sep 17 00:00:00 2001 From: taytzehao Date: Tue, 26 Sep 2023 20:51:44 +0800 Subject: [PATCH] lint check --- src/expr/src/vector_op/jsonb_concat.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expr/src/vector_op/jsonb_concat.rs b/src/expr/src/vector_op/jsonb_concat.rs index 80e7bf7b5e5b..f847c4fa5c1b 100644 --- a/src/expr/src/vector_op/jsonb_concat.rs +++ b/src/expr/src/vector_op/jsonb_concat.rs @@ -51,7 +51,7 @@ use serde_json::{json, Value}; /// SELECT 'null'::jsonb || '[1,2]'::jsonb; /// ---- /// [null, 1, 2] -/// +/// /// query T /// SELECT 'null'::jsonb || '1'::jsonb; /// ---- @@ -89,7 +89,7 @@ pub fn jsonb_cat(left: JsonbRef<'_>, right: JsonbRef<'_>) -> JsonbVal { // This would insert the non-array value as another element into the array // Eg left:{'a':1} right:[1,2] -> [{'a':1},1,2] (single_val, Value::Array(mut right_arr)) => { - right_arr.insert(0,single_val); + right_arr.insert(0, single_val); JsonbVal::from(Value::Array(right_arr)) }