Skip to content

Commit

Permalink
Remove pub(crate) as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Dec 23, 2024
1 parent bbddcf6 commit 5e4f644
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions rust/geoarrow/src/array/geometry/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ impl<'a> GeometryBuilder {
}

#[inline]
pub(crate) fn add_point_type(&mut self, dim: Dimension) {
fn add_point_type(&mut self, dim: Dimension) {
match dim {
Dimension::XY => {
self.offsets.push(self.point_xy.len().try_into().unwrap());
Expand Down Expand Up @@ -508,7 +508,7 @@ impl<'a> GeometryBuilder {
}

#[inline]
pub(crate) fn add_line_string_type(&mut self, dim: Dimension) {
fn add_line_string_type(&mut self, dim: Dimension) {
match dim {
Dimension::XY => {
self.offsets
Expand Down Expand Up @@ -589,7 +589,7 @@ impl<'a> GeometryBuilder {
}

#[inline]
pub(crate) fn add_polygon_type(&mut self, dim: Dimension) {
fn add_polygon_type(&mut self, dim: Dimension) {
match dim {
Dimension::XY => {
self.offsets.push(self.polygon_xy.len().try_into().unwrap());
Expand Down Expand Up @@ -644,7 +644,7 @@ impl<'a> GeometryBuilder {
}

#[inline]
pub(crate) fn add_multi_point_type(&mut self, dim: Dimension) {
fn add_multi_point_type(&mut self, dim: Dimension) {
match dim {
Dimension::XY => {
self.offsets.push(self.mpoint_xy.len().try_into().unwrap());
Expand Down Expand Up @@ -700,7 +700,7 @@ impl<'a> GeometryBuilder {
}

#[inline]
pub(crate) fn add_multi_line_string_type(&mut self, dim: Dimension) {
fn add_multi_line_string_type(&mut self, dim: Dimension) {
match dim {
Dimension::XY => {
self.offsets
Expand Down Expand Up @@ -756,7 +756,7 @@ impl<'a> GeometryBuilder {
}

#[inline]
pub(crate) fn add_multi_polygon_type(&mut self, dim: Dimension) {
fn add_multi_polygon_type(&mut self, dim: Dimension) {
match dim {
Dimension::XY => {
self.offsets
Expand Down Expand Up @@ -846,7 +846,7 @@ impl<'a> GeometryBuilder {
}

#[inline]
pub(crate) fn add_geometry_collection_type(&mut self, dim: Dimension) {
fn add_geometry_collection_type(&mut self, dim: Dimension) {
match dim {
Dimension::XY => {
self.offsets.push(self.gc_xy.len().try_into().unwrap());
Expand Down
12 changes: 6 additions & 6 deletions rust/geoarrow/src/array/mixed/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ impl<'a> MixedGeometryBuilder {
}

#[inline]
pub(crate) fn add_point_type(&mut self) {
fn add_point_type(&mut self) {
self.offsets.push(self.points.len().try_into().unwrap());
match self.dim {
Dimension::XY => self.types.push(1),
Expand Down Expand Up @@ -298,7 +298,7 @@ impl<'a> MixedGeometryBuilder {
}

#[inline]
pub(crate) fn add_line_string_type(&mut self) {
fn add_line_string_type(&mut self) {
self.offsets
.push(self.line_strings.len().try_into().unwrap());
match self.dim {
Expand Down Expand Up @@ -327,7 +327,7 @@ impl<'a> MixedGeometryBuilder {
}

#[inline]
pub(crate) fn add_polygon_type(&mut self) {
fn add_polygon_type(&mut self) {
self.offsets.push(self.polygons.len().try_into().unwrap());
match self.dim {
Dimension::XY => self.types.push(3),
Expand All @@ -350,7 +350,7 @@ impl<'a> MixedGeometryBuilder {
}

#[inline]
pub(crate) fn add_multi_point_type(&mut self) {
fn add_multi_point_type(&mut self) {
self.offsets
.push(self.multi_points.len().try_into().unwrap());
match self.dim {
Expand All @@ -374,7 +374,7 @@ impl<'a> MixedGeometryBuilder {
}

#[inline]
pub(crate) fn add_multi_line_string_type(&mut self) {
fn add_multi_line_string_type(&mut self) {
self.offsets
.push(self.multi_line_strings.len().try_into().unwrap());
match self.dim {
Expand All @@ -398,7 +398,7 @@ impl<'a> MixedGeometryBuilder {
}

#[inline]
pub(crate) fn add_multi_polygon_type(&mut self) {
fn add_multi_polygon_type(&mut self) {
self.offsets
.push(self.multi_polygons.len().try_into().unwrap());
match self.dim {
Expand Down

0 comments on commit 5e4f644

Please sign in to comment.