Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Replaced Display by Debug in Utf8Array #705

Merged
merged 1 commit into from
Dec 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/array/utf8/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub use mutable::*;
/// * Two consecutives `offsets` casted (`as`) to `usize` are valid slices of `values`.
/// * A slice of `values` taken from two consecutives `offsets` is valid `utf8`.
/// * `len` is equal to `validity.len()`, when defined.
#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct Utf8Array<O: Offset> {
data_type: DataType,
offsets: Buffer<O>,
Expand Down Expand Up @@ -264,7 +264,7 @@ impl<O: Offset> Array for Utf8Array<O> {
}
}

impl<O: Offset> std::fmt::Display for Utf8Array<O> {
impl<O: Offset> std::fmt::Debug for Utf8Array<O> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
display_fmt(self.iter(), &format!("{:?}", self.data_type()), f, false)
}
Expand Down