Skip to content

Commit

Permalink
Should not be pub
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed May 3, 2024
1 parent 32a0196 commit e7e2a5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arrow-cast/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ impl Parser for Float64Type {

/// This API is only stable since 1.70 so can't use it when current MSRV is lower
#[inline(always)]
pub fn is_some_and<T>(opt: Option<T>, f: impl FnOnce(T) -> bool) -> bool {
fn is_some_and<T>(opt: Option<T>, f: impl FnOnce(T) -> bool) -> bool {
match opt {
None => false,
Some(x) => f(x),
Expand Down
2 changes: 1 addition & 1 deletion arrow-json/src/writer/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ struct StructArrayEncoder<'a> {

/// This API is only stable since 1.70 so can't use it when current MSRV is lower
#[inline(always)]
pub fn is_some_and<T>(opt: Option<T>, f: impl FnOnce(T) -> bool) -> bool {
fn is_some_and<T>(opt: Option<T>, f: impl FnOnce(T) -> bool) -> bool {
match opt {
None => false,
Some(x) => f(x),
Expand Down

0 comments on commit e7e2a5a

Please sign in to comment.