Skip to content

Commit d123c58

Browse files
authored
Chore: un-ignore macro doc tests (#5112)
Tracking Issue: #5028 I disabled the tests before because we weren't exporting them before. Signed-off-by: Connor Tsui <[email protected]>
1 parent bb3989f commit d123c58

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

vortex-vector/src/macros.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
///
1212
/// # Examples
1313
///
14-
/// ```ignore
15-
/// use vortex_vector::{Vector, BoolVectorMut, NullVector, VectorOps, VectorMutOps};
14+
/// ```
15+
/// use vortex_vector::{
16+
/// Vector, BoolVectorMut, NullVector, VectorOps, VectorMutOps, match_each_vector
17+
/// };
1618
///
1719
/// fn get_vector_length(vector: &Vector) -> usize {
1820
/// match_each_vector!(vector, |v| { v.len() })
@@ -66,8 +68,10 @@ pub(crate) use match_each_vector;
6668
///
6769
/// # Examples
6870
///
69-
/// ```ignore
70-
/// use vortex_vector::{VectorMut, BoolVectorMut, NullVectorMut, VectorMutOps};
71+
/// ```
72+
/// use vortex_vector::{
73+
/// VectorMut, BoolVectorMut, NullVectorMut, VectorMutOps, match_each_vector_mut
74+
/// };
7175
///
7276
/// fn reserve_space(vector: &mut VectorMut, additional: usize) {
7377
/// match_each_vector_mut!(vector, |v| { v.reserve(additional) })

vortex-vector/src/primitive/macros.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
///
1717
/// # Examples
1818
///
19-
/// ```ignore
20-
/// use vortex_vector::{PrimitiveVector, PVectorMut, VectorOps, VectorMutOps};
19+
/// ```
20+
/// use vortex_vector::{PrimitiveVector, PVectorMut, VectorOps, VectorMutOps, match_each_pvector};
2121
///
2222
/// fn get_primitive_len(vector: &PrimitiveVector) -> usize {
2323
/// match_each_pvector!(vector, |v| { v.len() })
@@ -103,8 +103,8 @@ pub(crate) use match_each_pvector;
103103
///
104104
/// # Examples
105105
///
106-
/// ```ignore
107-
/// use vortex_vector::{PrimitiveVectorMut, PVectorMut, VectorMutOps};
106+
/// ```
107+
/// use vortex_vector::{PrimitiveVectorMut, PVectorMut, VectorMutOps, match_each_pvector_mut};
108108
///
109109
/// fn reserve_primitive_space(vector: &mut PrimitiveVectorMut, additional: usize) {
110110
/// match_each_pvector_mut!(vector, |v| { v.reserve(additional) })
@@ -125,6 +125,7 @@ pub(crate) use match_each_pvector;
125125
///
126126
/// [`PrimitiveVectorMut`]: crate::PrimitiveVectorMut
127127
/// [`VectorMutOps`]: crate::VectorMutOps
128+
#[macro_export]
128129
macro_rules! match_each_pvector_mut {
129130
($self:expr, | $vec:ident | $body:block) => {{
130131
match $self {

0 commit comments

Comments
 (0)