This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new c6fac6dd0 Make equals_datatype method public, enabling other modules 
(#1838)
c6fac6dd0 is described below

commit c6fac6dd00f0075289f05bf581aa4f54ca0447bc
Author: Remco Verhoef <[email protected]>
AuthorDate: Fri Jun 10 18:58:29 2022 +0200

    Make equals_datatype method public, enabling other modules (#1838)
    
    * we'd like to use this function in datafusion
---
 arrow/src/datatypes/datatype.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arrow/src/datatypes/datatype.rs b/arrow/src/datatypes/datatype.rs
index a740e8ecc..895e5cc67 100644
--- a/arrow/src/datatypes/datatype.rs
+++ b/arrow/src/datatypes/datatype.rs
@@ -671,7 +671,7 @@ impl DataType {
 
     /// Compares the datatype with another, ignoring nested field names
     /// and metadata.
-    pub(crate) fn equals_datatype(&self, other: &DataType) -> bool {
+    pub fn equals_datatype(&self, other: &DataType) -> bool {
         match (&self, other) {
             (DataType::List(a), DataType::List(b))
             | (DataType::LargeList(a), DataType::LargeList(b)) => {

Reply via email to