Skip to content

Commit

Permalink
Partially flatten arrow-buffer (#2737)
Browse files Browse the repository at this point in the history
* Partially flatten arrow-buffer

* Format
  • Loading branch information
tustvold committed Sep 15, 2022
1 parent 5238789 commit 0ebd71e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
9 changes: 7 additions & 2 deletions arrow-buffer/src/lib.rs
Expand Up @@ -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::*;
3 changes: 1 addition & 2 deletions arrow/src/bitmap.rs
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion arrow/src/datatypes/native.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arrow/src/util/mod.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 0ebd71e

Please sign in to comment.