Skip to content

Commit 9a34dfd

Browse files
committed
chore: make bitset in common_types private
1 parent ba6d96b commit 9a34dfd

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

common_types/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
//! Contains common types
44
5-
pub mod bitset;
65
pub mod column;
76
pub mod column_schema;
87
pub mod datum;
9-
pub mod hex;
8+
pub(crate) mod hex;
109
pub mod projected_schema;
1110
pub mod record_batch;
1211
pub mod request_id;

common_types/src/bitset.rs renamed to common_types/src/row/bitset.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
//! Simple BitSet implementation.
44
5+
#![allow(dead_code)]
6+
57
const BIT_MASK: [u8; 8] = [1, 2, 4, 8, 16, 32, 64, 128];
68
const UNSET_BIT_MASK: [u8; 8] = [
79
255 - 1,

common_types/src/row/contiguous.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ use prost::encoding::{decode_varint, encode_varint, encoded_len_varint};
1313
use snafu::{ensure, Backtrace, Snafu};
1414

1515
use crate::{
16-
bitset::{BitSet, RoBitSet},
1716
datum::{Datum, DatumKind, DatumView},
1817
projected_schema::RowProjector,
19-
row::Row,
18+
row::{
19+
bitset::{BitSet, RoBitSet},
20+
Row,
21+
},
2022
schema::{IndexInWriterSchema, Schema},
2123
time::Timestamp,
2224
};

common_types/src/row/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use crate::{
1717
time::Timestamp,
1818
};
1919

20+
pub(crate) mod bitset;
2021
pub mod contiguous;
2122

2223
#[derive(Debug, Snafu)]

0 commit comments

Comments
 (0)