Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jan 14, 2025
1 parent cd05188 commit f038faf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion parquet/src/arrow/array_reader/byte_view_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,6 @@ impl ByteViewArrayDecoderDelta {
}
}


#[cfg(test)]
mod tests {
use arrow_array::StringViewArray;
Expand Down
12 changes: 6 additions & 6 deletions parquet/src/util/utf8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// under the License.

//! [`check_valid_utf8`] validation function
use crate::errors::{Result, ParquetError};
use crate::errors::{ParquetError, Result};

/// Check that `val` is a valid UTF-8 sequence.
///
Expand Down Expand Up @@ -49,8 +49,8 @@ pub fn check_valid_utf8(val: &[u8]) -> Result<()> {
}
}
#[cfg(not(feature = "simdutf8"))]
match std::str::from_utf8(val) {
Ok(_) => Ok(()),
Err(e) => Err(general_err!("encountered non UTF-8 data: {}", e)),
}
}
match std::str::from_utf8(val) {
Ok(_) => Ok(()),
Err(e) => Err(general_err!("encountered non UTF-8 data: {}", e)),
}
}

0 comments on commit f038faf

Please sign in to comment.