From fbafcf001278e575383ac8a95cb837edd63d3b54 Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Fri, 19 Nov 2021 18:49:31 +0000 Subject: [PATCH] Added Send+Sync to `MutableArray`. --- src/array/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/array/mod.rs b/src/array/mod.rs index c9ecb890979..317543087a1 100644 --- a/src/array/mod.rs +++ b/src/array/mod.rs @@ -107,10 +107,10 @@ pub trait Array: std::fmt::Debug + Send + Sync { } /// A trait describing a mutable array; i.e. an array whose values can be changed. -/// Mutable arrays are not `Send + Sync` and cannot be cloned but can be mutated in place, +/// Mutable arrays cannot be cloned but can be mutated in place, /// thereby making them useful to perform numeric operations without allocations. /// As in [`Array`], concrete arrays (such as [`MutablePrimitiveArray`]) implement how they are mutated. -pub trait MutableArray: std::fmt::Debug { +pub trait MutableArray: std::fmt::Debug + Send + Sync { /// The [`DataType`] of the array. fn data_type(&self) -> &DataType;