diff --git a/arrow/src/buffer/immutable.rs b/arrow/src/buffer/immutable.rs index bd09702bf3f9..b5174d3288ae 100644 --- a/arrow/src/buffer/immutable.rs +++ b/arrow/src/buffer/immutable.rs @@ -244,6 +244,7 @@ impl std::ops::Deref for Buffer { } unsafe impl Sync for Buffer {} +#[allow(clippy::non_send_fields_in_send_ty)] unsafe impl Send for Buffer {} impl From for Buffer { diff --git a/arrow/src/util/test_util.rs b/arrow/src/util/test_util.rs index 6b1ad4be1d76..cae148a53d5c 100644 --- a/arrow/src/util/test_util.rs +++ b/arrow/src/util/test_util.rs @@ -147,7 +147,7 @@ fn get_data_dir(udf_env: &str, submodule_data: &str) -> Result { // Also print converted type if it is available match converted_type { - ConvertedType::NONE => format!(""), + ConvertedType::NONE => String::new(), decimal @ ConvertedType::DECIMAL => { // For decimal type we should print precision and scale if they // are > 0, e.g. DECIMAL(9,2) - @@ -256,7 +256,7 @@ fn print_logical_and_converted( format!("({},{})", p, s) } (p, 0) if p > 0 => format!("({})", p), - _ => format!(""), + _ => String::new(), }; format!("{}{}", decimal, precision_scale) }