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

tustvold 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 0ebd71e0d Partially flatten arrow-buffer (#2737)
0ebd71e0d is described below

commit 0ebd71e0d3d132250a2e5743f24f952c58c236d3
Author: Raphael Taylor-Davies <[email protected]>
AuthorDate: Thu Sep 15 22:44:22 2022 +0100

    Partially flatten arrow-buffer (#2737)
    
    * Partially flatten arrow-buffer
    
    * Format
---
 arrow-buffer/src/lib.rs       | 9 +++++++--
 arrow/src/bitmap.rs           | 3 +--
 arrow/src/datatypes/native.rs | 2 +-
 arrow/src/util/mod.rs         | 2 +-
 4 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/arrow-buffer/src/lib.rs b/arrow-buffer/src/lib.rs
index a8aca7c3d..74d2bd5ec 100644
--- a/arrow-buffer/src/lib.rs
+++ b/arrow-buffer/src/lib.rs
@@ -19,6 +19,11 @@
 
 pub mod alloc;
 pub mod buffer;
+pub use buffer::{Buffer, MutableBuffer};
+
 mod bytes;
-pub mod native;
-pub mod util;
+mod native;
+
+pub use native::*;
+mod util;
+pub use util::*;
diff --git a/arrow/src/bitmap.rs b/arrow/src/bitmap.rs
index 4491da463..dbf970667 100644
--- a/arrow/src/bitmap.rs
+++ b/arrow/src/bitmap.rs
@@ -17,12 +17,11 @@
 
 //! Defines [Bitmap] for tracking validity bitmaps
 
-use crate::buffer::Buffer;
 use crate::error::{ArrowError, Result};
 use crate::util::bit_util;
 use std::mem;
 
-use arrow_buffer::buffer::{buffer_bin_and, buffer_bin_or};
+use arrow_buffer::buffer::{buffer_bin_and, buffer_bin_or, Buffer};
 use std::ops::{BitAnd, BitOr};
 
 #[derive(Debug, Clone)]
diff --git a/arrow/src/datatypes/native.rs b/arrow/src/datatypes/native.rs
index 8c329a066..de35c4804 100644
--- a/arrow/src/datatypes/native.rs
+++ b/arrow/src/datatypes/native.rs
@@ -16,7 +16,7 @@
 // under the License.
 
 use super::DataType;
-pub use arrow_buffer::native::{ArrowNativeType, ToByteSlice};
+pub use arrow_buffer::{ArrowNativeType, ToByteSlice};
 use half::f16;
 
 /// Trait bridging the dynamic-typed nature of Arrow (via [`DataType`]) with 
the
diff --git a/arrow/src/util/mod.rs b/arrow/src/util/mod.rs
index 5453c11ab..adafc9f50 100644
--- a/arrow/src/util/mod.rs
+++ b/arrow/src/util/mod.rs
@@ -15,7 +15,7 @@
 // specific language governing permissions and limitations
 // under the License.
 
-pub use arrow_buffer::util::{bit_chunk_iterator, bit_util};
+pub use arrow_buffer::{bit_chunk_iterator, bit_util};
 
 #[cfg(feature = "test_utils")]
 pub mod bench_util;

Reply via email to